Aller au contenu

Photo

Moving Backwards


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Baaleos

Baaleos
  • Members
  • 1 330 messages
Is it possible through scripting to command an NPC to move backwards?
Eg: Walk South, while facing North.

We can do this via keyboard - wasd etc
But I have never tried to do with scripting.

ActionMoveTo etc - I think only tells the npc to move forward.

#2
meaglyn

meaglyn
  • Members
  • 809 messages

I believe if you make the moveto location close enough and right behind then the NPC will just back up. You could make a sequence of really short moves. Look at GetBehindLocation. The default will almost certainly be too far. But you can copy the code and use smaller distances.  This is just a guess though (i.e. I have not tested this). You can simulate it, of course,  with a PC and the mouse without wasd. Just click close behind.