Detecting fall
#5

pawn Код:
OnPlayerUpdate(playerid)
{
    new Float:Velocity[3];
    GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
    if ( Velocity[2] < building height)
    {
         //your code
    }
    return 1;
}
Try this code..
Reply


Messages In This Thread
Detecting fall - Problem solved for now - by jibileu - 20.01.2013, 16:43
AW: Detecting fall - by IPrototypeI - 20.01.2013, 17:07
Re: AW: Detecting fall - by jibileu - 20.01.2013, 17:21
Re: Detecting fall - by Vince - 20.01.2013, 17:24
Re: Detecting fall - by B-Matt - 20.01.2013, 17:39
Re: Detecting fall - by jibileu - 20.01.2013, 18:38
Re: Detecting fall - by B-Matt - 20.01.2013, 19:32
Re: Detecting fall - by jibileu - 20.01.2013, 19:37

Forum Jump:


Users browsing this thread: 1 Guest(s)