Jump to content

Home

Rotating people, facing the wrong way?


Canderis

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...