IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Car visibility

 
Joni2030  
Posted: Wednesday, Jan 16 2013, 19:44
Quote Post


Prankster
Group Icon
Group: Members
Joined: Jul 6, 2011

sf.gif

XXXXX



I started coding again but have forgot some stuff so now i need a help i want this script to go visibility and when i press again i want it come back to show so what it's wrong it's works great


here is the code

CODE

thread 'DRIVE'

:DRIVE_11
wait 0
if
  Player.Defined($PLAYER_ACTOR)
03C0: 1@ = actor $PLAYER_ACTOR car
else_jump @DRIVE_11
if
  Actor.Driving($PLAYER_ACTOR)
else_jump @DRIVE_11
wait 0
jump @DRIVE_66

:DRIVE_66
wait 0
if
0AB0:   key_pressed 82
else_jump @DRIVE_92
0338: set_car 1@ visibility 0

:DRIVE_92
wait 0
jump @DRIVE_11
Users WebsitePM
  Top
 

 
ZAZ  
Posted: Wednesday, Jan 16 2013, 20:18
Quote Post


Kernlochbohrer
Group Icon
Group: Members
Joined: Jan 10, 2005

eu.gif

Member Award




03C0 isn't a conditional opcode
place it there, where the code passed the conditional check if Actor.Driving($PLAYER_ACTOR)
Users WebsitePM
  Top
 

 
Ashwin the new boy  
Posted: Thursday, Jan 17 2013, 10:05
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



it cold be something like this

CODE

thread 'Ash'

:A
wait 0
if and
 Player.Defined($PLAYER_ACTOR)
 Actor.Driving($PLAYER_ACTOR)
else_jump @a
03C0: 1@ = actor $PLAYER_ACTOR car
0@ = 0 // current Visibility

:S
wait 0
if
0AB0:   key_pressed 82
else_jump @S
if
0@ == 0
jf @H
0338: set_car 1@ visibility 1
0@ = 1

:H
0338: set_car 1@ visibility 0
0@ = 0
jump @A

Th Code is untested & not written in SB,
Users WebsitePM
  Top
 

 
Joni2030  
Posted: Thursday, Jan 17 2013, 17:21
Quote Post


Prankster
Group Icon
Group: Members
Joined: Jul 6, 2011

sf.gif

XXXXX



Ashwin i tested that it's works great but it wont come again to visible if i press it again that i want as i said in the first post
Users WebsitePM
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG