Actor created upon unit death, but only if Upgrade is researched?

X-maul

AKA: Demtrod
Reaction score
201
I got an actor that plays when a unit dies, but I only want it to play if the owner of the unit have researched a specific upgrade.

I asume it's a validator, but I do not really understand how validators work.
 

Dave312

Censored for your safe viewing
Reaction score
269
Validators are basically just a condition. In this case, you need to create both a validator and a requirement. Create a requirement that checks if the upgrade has been researched, then create a validator of the type Player Requirement which references your requirement. Then in your event that creates your actor, add a ValidateUnit term which references your validator.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top