Aller au contenu

Photo

Set Facing


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Jereniva

Jereniva
  • Members
  • 132 messages

How would I delay a SetFacing?

Example, these four people, I want them at time they arrive, to set their facing equal to the WP (the oWP* objects)

            AssignCommand(oHunter,ActionMoveToObject(oWP_hunterhome,TRUE));
            AssignCommand(oNeylad,ActionMoveToObject(oWP_neyladhome,TRUE));    
            AssignCommand(oSenara,ActionMoveToObject(oWP_senarahome,TRUE));
            AssignCommand(oAurel,ActionMoveToObject(oWP_aurelhome,TRUE));

Right now, they're all staring at the walls, it's not a very productive meeting, lol.

 



#2
Tchos

Tchos
  • Members
  • 5 080 messages

Put the SetFacing commands inside ActionDoCommand functions, so that they occur after they've completed the movement actions.



#3
kevL

kevL
  • Members
  • 4 075 messages
yeh sequence their actions on their Action Queues.

AssignCommand(oHunter, ActionMoveToObject(oWP_hunterhome, TRUE));
AssignCommand(oHunter, ActionDoCommand(SetFacing(fDir)));

or so,

#4
PJ156

PJ156
  • Members
  • 2 988 messages

 

Right now, they're all staring at the walls, it's not a very productive meeting, lol.

 

I've been to a few like that :)

 

PJ


  • GCoyote aime ceci

#5
kevL

kevL
  • Members
  • 4 075 messages
oh that reminds me ...

use GetFacing(oWP) for fDir