Jump to content

Non-Persistent reference in scripting


Recommended Posts

When i try to use the moveto command on anything other than the player, it gives me this error

 

Non-persistent reference '...' cannot be used in a script.

 

the line that is giving me this problem is: Creatureid.moveto TargetRat

 

but i have a very similar thing that is: player.moveto TargetRat_ that works perfectly as i want it to with no errors

 

Can anyone tell me an easy fix to my problem, or if not a fix, atleast why it is not allowing me to do so?

 

thanks in advance, this is what I feel like right now with this, i got so far on scripting this mess today, then...http://www.thenexusforums.com/public/style_emoticons/dark/wallbash.gifhttp://www.thenexusforums.com/public/style_emoticons/dark/verymad.gifhttp://www.thenexusforums.com/public/style_emoticons/dark/excl.gifhttp://www.thenexusforums.com/public/style_emoticons/dark/nuke.gif

Link to comment
Share on other sites

Find the creature in the render window and double click upon it, at the very top of the new box that opens you will see Reference Editor ID...place an ID for it here and check the persistent reference box if you need to. Then use this Ref in your script. eg you call it RottingZombieRef

 

RottingZombieRef.moveto TargetRat

Link to comment
Share on other sites

  • Recently Browsing   0 members

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