creating an explosion in front of player in all sides?
#7

Well, this is the function to do that.

pawn Код:
stock bool:GetPosInFrontOfPoint(&Float:OutputX, &Float:OutputY, Float:Angle, Float:Distance)
{
if(!Distance) return false;
OutputX += floatmul(Distance, floatsin(-Angle, degrees));
OutputY += floatmul(Distance, floatcos(-Angle, degrees));
return true;
}
Do you understand now?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 11 Guest(s)