/tg/ Station 13 - Modules - TypesVar Details - Proc Details

target_has_trait

Gates child on the atom held in a blackboard key having a given trait. Use "invert": true to gate on the trait being absent.

Vars

keyBlackboard key holding the atom to check.
observed_targetTracked so we can rebind signals when the key changes.
traitThe trait the target must have for the child to run.

Procs

on_target_key_changedFires when the blackboard key changes. Rebinds trait signals to the new target and re-evaluates.

Var Details

key

Blackboard key holding the atom to check.

observed_target

Tracked so we can rebind signals when the key changes.

trait

The trait the target must have for the child to run.

Proc Details

on_target_key_changed

Fires when the blackboard key changes. Rebinds trait signals to the new target and re-evaluates.