CLEO Help Check if user is inside a vehicle

CLEO related
Status
Not open for further replies.

SiraBots

Active member
Joined
Aug 11, 2013
Messages
50
Reaction score
0
Location
Norway
Well, I'm trying to make a script where it checks if the user is sitting inside a car. If it returns positive, then something happens and if user is not inside a vehicle, then something else happens. What is the function for this?

For example:
IF 02D8: actor $PLAYER_ACTOR current_weapon == 0

Thanks.
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,492
Reaction score
236
Location
( ͡° ͜ʖ ͡°)
Open SannyBuilder3,
press CTRL + ALT + 2 to open the opcode search tool,
type in "driving" and you will find this in the list:
00DF:   actor $PLAYER_ACTOR driving


Then just


if
00DF:   actor $PLAYER_ACTOR driving
then

// do whatever if incar

else


// do when not in car

end
 
Status
Not open for further replies.
Top