how to make a pawn fly away...
how to make a pawn fly away...
How would I go about getting the yaw and pitch from the Player and use it so an entity can move using those?
Over 3 years (has it been that long?) and just now I noticed the day and month of my birthday were switched. Whoops!
Some 2d games I made, haven't made anything in a year though O.o
http://www.yoyogames.com/users/GMer56
Some 2d games I made, haven't made anything in a year though O.o
http://www.yoyogames.com/users/GMer56
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
Re: how to make a pawn fly away...
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
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...
There is a self.player_pitch variable too, right?
I can't check right now, on a mac at school
I can't check right now, on a mac at school
Over 3 years (has it been that long?) and just now I noticed the day and month of my birthday were switched. Whoops!
Some 2d games I made, haven't made anything in a year though O.o
http://www.yoyogames.com/users/GMer56
Some 2d games I made, haven't made anything in a year though O.o
http://www.yoyogames.com/users/GMer56
- darksmaster923
- Posts: 1857
- Joined: Wed Jan 03, 2007 10:32 pm
- Location: Huntington Beach, California, USA
- Contact:
Re: how to make a pawn fly away...
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 scriptGMer wrote:There is a self.player_pitch variable too, right?
I can't check right now, on a mac at school
Herp derp.