Quote:
|
Originally Posted by backwardsman97
You also need to use sine and cosine to get a position in front of the player. There are lots of functions for this though.
pawn Код:
stock GetXYInDirectionOfPosition(Float:direction, &Float:x, &Float:y, Float:dist) { x += (dist * floatsin(-direction, degrees)); y += (dist * floatcos(-direction, degrees)); }
Just us the player's facing angle for direction. You can also look at the debug FS for reference.
|
Ok can kinda understand I know(c++ ^^)
But Can u help to write the script