Class MechanicTargetDef
Additional eligibility for mechanic actions; never replaces lifecycle or faction checks.
public sealed class MechanicTargetDef
- Inheritance
-
MechanicTargetDef
- Inherited Members
Constructors
MechanicTargetDef(ulong, ulong, bool, float, float)
Creates a reusable filter, including execute eligibility.
public MechanicTargetDef(ulong requiredTags = 0, ulong rejectedTags = 0, bool allowHeroes = true, float maximumHealthRatio = 1, float maximumHealth = 0)
Parameters
Properties
AllowHeroes
Allows independent heroes as recipients.
public bool AllowHeroes { get; }
Property Value
MaximumHealth
Optional absolute current-health ceiling; zero disables it.
public float MaximumHealth { get; }
Property Value
MaximumHealthRatio
Maximum current/maximum health ratio, inclusive.
public float MaximumHealthRatio { get; }
Property Value
RejectedTags
None of these author-defined target tags may be present.
public ulong RejectedTags { get; }
Property Value
RequiredTags
All these author-defined target tags must be present.
public ulong RequiredTags { get; }