Triforce1 Posted June 29, 2009 Share Posted June 29, 2009 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 More sharing options...
Vagrant0 Posted June 29, 2009 Share Posted June 29, 2009 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 More sharing options...
Triforce1 Posted June 30, 2009 Author Share Posted June 30, 2009 Most excellent, thank you very much. Shame the kudos system only allows an individual point from each member. You never fail to help us all, Vagrant0. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts