CLEO Help Eject Snippet

CLEO related
Status
Not open for further replies.

4changesLeft

Well-known member
Joined
Apr 10, 2015
Messages
365
Reaction score
4
I'm searching for a piece of code which allowes you to eject the driver of the car if you're controlling it.. Can anyone help me?
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
idk about 0.3.7 but in 0.3z it ejeted the driver if you took over someone's vehicle while being on foot. The problem is that after you eject him you'll probably be seen by other players as a driver. If it still works the same way you could make a script which ejects yourself from the vehicle to some near location (near your previous car or underground) for around 1-500 miliseconds and put yourself inside the vehicle again
 

4changesLeft

Well-known member
Joined
Apr 10, 2015
Messages
365
Reaction score
4
monday said:
idk about 0.3.7 but in 0.3z it ejeted the driver if you took over someone's vehicle while being on foot. The problem is that after you eject him you'll probably be seen by other players as a driver. If it still works the same way you could make a script which ejects yourself from the vehicle to some near location (near your previous car or underground) for around 1-500 miliseconds and put yourself inside the vehicle again

I got the logic on this, but how can I take over a vehicle while being onfoot? Something like that crashes my game :p
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
you could use opcode 036A: put_actor 1@ in_car 0@ or send packets, there was a snippet for it around the forum. The process of getting into someone's car is the same, it's just the server that responds differently because you weren't driving before
 

4changesLeft

Well-known member
Joined
Apr 10, 2015
Messages
365
Reaction score
4
monday said:
you could use opcode 036A: put_actor 1@ in_car 0@ or send packets, there was a snippet for it around the forum. The process of getting into someone's car is the same, it's just the server that responds differently because you weren't driving before

I think that those snippets for syncing car with packets are outdated
 
Status
Not open for further replies.
Top