Jump to content

Help getting script to work, teleporting npc to player


WOTmodsproductions

Recommended Posts

I'm trying to get an npc to teleport to the player.

 

The NPC will travel to the player and attack, but always spawns on top of them when sleeping. So I'm trying to force the NPC to teleport a little distance away to give a chance

 

I thought this would work, but nothing happens when the npc appears

 

 

Scriptname banditteleport0

{Event OnLoad()

 

 

TS1.MoveToplayer(500,500,500)

endif

EndEvent}

â

I don't know a whole lot about scripting, but it compiles so I cant see what is wrong with it

 

TS1 is the REF of the NPC in the REF window.

 

Can anyone help get this working? Thanks

Edited by thelonewarrior
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...