Author Topic: Moving Backwards  (Read 437 times)

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
Moving Backwards
« on: December 23, 2014, 07:30:04 pm »


               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.
               
               

               
            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
Moving Backwards
« Reply #1 on: December 23, 2014, 11:50:50 pm »


               

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.