11.01.2018, 13:22
I am creating something that if the player drives above a certain about of speed he gets flown out of the window like in GTAiv etc. This is unpossible to to with an animation i think, so i want to tp the player in front of the vehicle.
I know it is possible to do it with vehicles...
But is it also possible to revert that? so simply eject the player from the car and put them in front of the vehicle.
How would i put the player in front of the vehicle.
I think something with the player facing angle?
This is what i have now but i cant figure out how i should set the player in front of the vehicle with setplayerpos or setplayerfacingangle.
Edit: is there also a way to make the car window break like if you shoot on it?
I know it is possible to do it with vehicles...
But is it also possible to revert that? so simply eject the player from the car and put them in front of the vehicle.
How would i put the player in front of the vehicle.
I think something with the player facing angle?
This is what i have now but i cant figure out how i should set the player in front of the vehicle with setplayerpos or setplayerfacingangle.
PHP код:
GetPlayerPos(playerid, PlayerX, PlayerY, PlayerZ);
RemovePlayerFromVehicle(playerid);
GetPlayerFacingAngle(playerid, Float:Angle);