09.05.2010, 11:32
I got a simple cmd:
it should create an explosion in front i guess but it only creates it in east side and the distance is pretty low, i don't really get it how to increase it and do a explosion ALWAYS in front of him?
pawn Код:
new Distance = 10,Float:Poss[4];
GetPlayerPos(playerid,Poss[0],Poss[1],Poss[2]);
GetPlayerFacingAngle(playerid,Poss[3]);
CreateExplosion
(
Poss[0] + ( Distance * floatsin( -Poss[3], degrees) ),
Poss[1] + ( Distance * floatcos( -Poss[3], degrees) ),
Poss[2],
11,
10.0
);