Crashing through windshield
#3

Yes, I don't need the windshield to be broken, all I need is throw the player out of the windshield. I tried adding y to SetPlayerVelocity like you said, but the problem here is that it throws you to north regardless of your facing angle.
That's what I've done so far:
Код:
public OnPlayerCrashVehicle(playerid, vehicleid, Float:damage)
{
	new Float:x, Float:y, Float:z;
				
	GetPlayerPos(playerid, x, y, z);
	SetPlayerPos(playerid, x, y, z + 1.0);			
	SetPlayerVelocity(playerid, 0.0, 1.0, 1.0);
	return 1;
}
So basically all I need is throw player to wherever he is facing.
Reply


Messages In This Thread
Crashing through windshield - by GoldenLion - 05.11.2016, 16:06
Re: Crashing through windshield - by Abagail - 05.11.2016, 16:10
Re: Crashing through windshield - by GoldenLion - 05.11.2016, 16:24
Respuesta: Crashing through windshield - by Swedky - 05.11.2016, 17:31
Re: Respuesta: Crashing through windshield - by GoldenLion - 05.11.2016, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)