Jump to content

Scripting Aid


Triforce1

Recommended Posts

I am in need of a line of code that I can put into an un-timed summoning script that will cause the summoned creature to return to it's holding cell when the player gets a certain distance away from it. 1000 units was recommended to me, but I think a little tweaking would be necessary. Can anyone help? Thanks.

 

-Triforce1

Link to comment
Share on other sites

I am in need of a line of code that I can put into an un-timed summoning script that will cause the summoned creature to return to it's holding cell when the player gets a certain distance away from it. 1000 units was recommended to me, but I think a little tweaking would be necessary. Can anyone help? Thanks.

 

-Triforce1

 

If player.isridinghorse != 1 && player.isincombat != 1
if getinworldspace Tamriel == 1 || getinworldspace <any other worldspace you are supporting with the summon> == 1
If getdistance player > 1000
  movetomarker <marker in cell>
endif
endif
endif

 

And attach it to the script on the creature that was summoned.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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