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

I got a simple cmd:

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
        );
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?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 8 Guest(s)