Jump to content
Sign in to follow this  
MaldorLevr

Send a player into the air from the backseat of the car

Recommended Posts

So I've been trying to get this script working where the person in the backseat of the car gets ejected and then launched into the air for the server that I develop for. Whenever I try this script the player gets ejected into the air, but only the driver sees it happen. For the player being ejected he is just out of the car, standing there. I'm honestly completely stumped on this one and I have no clue what to do to try and fix it.

_backseat = crew (vehicle player) select 1;
ejecter = _backseat;
_backseat action ["eject", vehicle player];
ejecter setVelocity [0,0,100];

Share this post


Link to post
Share on other sites

setVelocity requires the unit/vehicle to be local, maybe that's the problem here?

If you're the driver and eject the player, you have to execute the velocity-command on the client which belongs to ejecter.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×