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 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
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