Page 1 of 1
how to make a pawn fly away...
Posted: Tue Mar 16, 2010 2:25 am
by GMer
How would I go about getting the yaw and pitch from the Player and use it so an entity can move using those?
Re: how to make a pawn fly away...
Posted: Tue Mar 16, 2010 7:23 am
by QuestOfDreams
self.player_yaw
Returns the current player yaw
self.enemy_yaw
A read-only variable that contains the yaw angle, in radians, the Pawn must face to be pointing at the target.
self.enemy_pitch
A read-only variable that contains the pitch angle, in radians, the Pawn must face to be pointing at the target.
Look at the flock.s script in the script/sample folder
Re: how to make a pawn fly away...
Posted: Tue Mar 16, 2010 4:01 pm
by GMer
There is a
self.player_pitch variable too, right?
I can't check right now, on a mac at school

Re: how to make a pawn fly away...
Posted: Fri Mar 19, 2010 6:04 am
by darksmaster923
GMer wrote:There is a
self.player_pitch variable too, right?
I can't check right now, on a mac at school

No, there is only camera pitch. I did make a pawn fly away from the player in the tactical game demo I made, but I forgot how I did it. I've been away for too long. If you get the demo, check for the fireteamamarker.s script