Class SelectObject

Hierarchy

Constructors

  • Select an object (Entities, Items, ..etc).

    Parameters

    • condition: "LastMob" | "RandomPlayer" | "LastEntity" | "Shooter" | "AllMobs" | "EntityName" | "FilterRandom" | "DefaultEntity" | "PlayerName" | "AllEntities" | "Damager" | "FilterDistance" | "FilterRay" | "Reset" | "EventTarget" | "Killer" | "Victim" | "EntitiesCond" | "AllPlayers" | "Invert" | "RandomEntity" | "FilterCondition" | "MobsCond" | "FilterSort" | "Projectile" | "DefaultPlayer" | "PlayersCond" | "MobName"

      Condition to select by.

    • Rest ...args: DFValueType[]

      Arguments to pass specified by the chosen condition.

    Returns SelectObject

Properties

_componentName: string = "serializable"

The component's name

action: "LastMob" | "RandomPlayer" | "LastEntity" | "Shooter" | "AllMobs" | "EntityName" | "FilterRandom" | "DefaultEntity" | "PlayerName" | "AllEntities" | "Damager" | "FilterDistance" | "FilterRay" | "Reset" | "EventTarget" | "Killer" | "Victim" | "EntitiesCond" | "AllPlayers" | "Invert" | "RandomEntity" | "FilterCondition" | "MobsCond" | "FilterSort" | "Projectile" | "DefaultPlayer" | "PlayersCond" | "MobName"

The action to check for.

args: DFValueType[]

Arguments to pass.

isInverted: boolean = false

If the codeblock is inverted (mostly for conditional blocks).

subAction: string
type: "select_obj"

Type of the codeblock.

Methods

  • Parameters

    • action: "LastMob" | "RandomPlayer" | "LastEntity" | "Shooter" | "AllMobs" | "EntityName" | "FilterRandom" | "DefaultEntity" | "PlayerName" | "AllEntities" | "Damager" | "FilterDistance" | "FilterRay" | "Reset" | "EventTarget" | "Killer" | "Victim" | "EntitiesCond" | "AllPlayers" | "Invert" | "RandomEntity" | "FilterCondition" | "MobsCond" | "FilterSort" | "Projectile" | "DefaultPlayer" | "PlayersCond" | "MobName"

    Returns SelectObject

Generated using TypeDoc