Canderis Posted June 15, 2009 Share Posted June 15, 2009 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) Link to comment Share on other sites More sharing options...
Star Admiral Posted June 15, 2009 Share Posted June 15, 2009 According to nwscript.nss, a value of 0.0 means east, so 180.0 must mean west. Did you try that already? - Star Admiral Link to comment Share on other sites More sharing options...
Canderis Posted June 15, 2009 Author Share Posted June 15, 2009 I have and he still faces east. Link to comment Share on other sites More sharing options...
glovemaster Posted June 15, 2009 Share Posted June 15, 2009 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.