Make Car Spawn At Player Chords
#4

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
Reply


Messages In This Thread
Make Car Spawn At Player Chords - by bumfluff - 19.05.2009, 06:03
Re: Make Car Spawn At Player Chords - by Redirect Left - 19.05.2009, 06:06
Re: Make Car Spawn At Player Chords - by Backwardsman97 - 19.05.2009, 06:12
Re: Make Car Spawn At Player Chords - by bumfluff - 19.05.2009, 06:19

Forum Jump:


Users browsing this thread: 1 Guest(s)