Posts: 141
Threads: 26
Joined: Apr 2009
Reputation:
0
Alright, so basicly I want to make a script that would work something like this: Player A types some command, any player that is infront of him within a certain range (in this case Player B) gets his velocity set to the direction the Player A is facing, already figured out the range but I need some help with getting the Player A angle and then setting Player B's velocity to Player A's facing angle
I'd appreciate any help.
Posts: 141
Threads: 26
Joined: Apr 2009
Reputation:
0
If I'm not wrong that would set it to the amount of angle and not angle
Posts: 141
Threads: 26
Joined: Apr 2009
Reputation:
0
26.01.2012, 06:09
(
Последний раз редактировалось McCarthy; 26.01.2012 в 11:54.
)
If angle would 90 it would set velocity to 90, which is not what I want, I might have explained bad
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
You'd have to use some maths.
Posts: 141
Threads: 26
Joined: Apr 2009
Reputation:
0
Exactly, which I suck at so I need some help D:
Posts: 153
Threads: 17
Joined: Jan 2011
Reputation:
0
You want to face player B to the direction of player A and speedboost him for him to reach player A?
Don't know how to do first part... might have to use some advanced mathies to guess what angle points to player A because all you have is both's coordinates(where they are facing doesnt matter)...