View Full Version : Rotating people, facing the wrong way?
06-14-2009, 11:54 PM
DelayCommand( 1.0, AssignCommand(oNPC2, ActionDoCommand( SetFacing(0.0) )) );
That is the bit of my script that is not working. No matter what I put in for the 0.0 the person is still facing the same way. Is there a way to fix this? ( I need them to face west if it helps)
06-15-2009, 12:34 AM
According to nwscript.nss, a value of 0.0 means east, so 180.0 must mean west. Did you try that already?
- Star Admiral
06-15-2009, 12:35 AM
I have and he still faces east.
06-15-2009, 05:48 AM
When is the NPC required to face west, and what is he doing at the time?
You may need to clear their action queue before assigning a command:
DelayCommand(1.0, AssignCommand(oNPC2, ClearAllActions()));
DelayCommand(1.0, AssignCommand(oNPC2, SetFacing(0.0)));
I also find that when assigning a command, ActionDoCommand() is generally not needed.
vBulletin®, Copyright ©2000-2016, Jelsoft Enterprises Ltd.