Jump to content

Papyrus script, how to check if actorbase is used in game


Miccoatli

Recommended Posts

Posted

I am working on a script which is spawning actors from an actorbase list at, on specific conditions which are unimportant, random (unique for them to work with certain mods etc. etc.). The thing I am currently working on (and got stuck on) is how to keep the actors unique.

 

Is there a way to detect in papyrus script if the specific actorbase is already used in game? Or is there an even better way? :)

 

PS: the only way I thought of so far was to create more actors to the list. But that is certainly not bulletproof :)

Posted

no hits? I am going through similar discussion on nexus and advice given:

 

"Then make a variable for each actor that changes to 1 when they are summoned, and to 0 when they dissapear. If that variable is bigger than 1 then add a condition so that actor won't be summoned unless the variable is 0. Your script will be a lot bigger but it will work.

 

OR you could check if the Actor you have summoned already exists, and set that as a condition instead of a random variable."

 

any idea how to check if the actor is already summoned?

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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