Game Development Community

Player rotation problem

by Spencer Strombotne · in Technical Issues · 07/14/2008 (12:40 pm) · 1 replies

I have an npc that just needs to stand there at rotation "0 0 1 180", but everytime I load the mission, he goes back to "0 0 0 0" to face a wall. I have set rotation = "0 0 1 180" in the datablock. What do I need to do?

#1
07/14/2008 (1:18 pm)
Yes, there is an issue where all AIPlayers have their rotation set back to 0 after the mission loads.
somewhere someone posted an elegant fix for this.

i do a kludgey thing where i store the orientation of each NPC immediately after the mission loads,
and then restore it them in startGame().

i'd rather not post more details on that since it really is a kludgey approach.
maybe someone else remembers the elegant fix ?