CLEO Help Exit Car

CLEO related
Status
Not open for further replies.

CristianSS

Active member
Joined
Jul 24, 2017
Messages
27
Reaction score
0
Hello scripters. I want a script like when i type the command "/exitcar" the player actor will exit the car. Is it possible?
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
CristianSS said:
Hello scripters. I want a script like when i type the command "/exitcar" the player actor will exit the car. Is it possible?

press F 
btw check this https://www.youtube.com/watch?v=udfn7WfnA4E
 

CristianSS

Active member
Joined
Jul 24, 2017
Messages
27
Reaction score
0
This is the thing, i want this for another script. I don`t want to exit the car with "F" i want to exit with a command. I think this is the opcode + 0x1E Enter+exit but i don t know how to use it :?
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
[shcode=cpp]
{$CLEO}
0000:

repeat
wait 100
until 0afa:

0b34: "exitcar" @ exit

while true
wait 0
end

:exit
if 00DF: actor $PLAYER_ACTOR driving
then
03C0: 0@ = actor $PLAYER_ACTOR car
0633: AS_actor $PLAYER_ACTOR exit_car
end
0b43:
[/shcode]
 
Status
Not open for further replies.
Top