DefaultEnableDisableTrigScript
Jump to navigation
Jump to search
NOTE: Place a DefaultEnableDisableTrigger to make use of this script.
Default script used for checking if a ref/alias/faction entered this trigger, which will enable/disable this triggers linked ref.
Required Properties[edit | edit source]
Bool PlayerTriggerOnly
{If set to TRUE (DEFAULT) the Linked Ref will Enable/Disable if Triggered ONLY by the player.
If set to FALSE, and all arrays are empty, then the Linked Ref will Enable/Disable if Triggered by anybody.
(If you want to trigger based on the Player AND something else then add the toe the TriggeredByReferences array)}
Bool bEnableLinkedRef
{If set to TRUE (DEFAULT) then this triggers LinkedRef will be enabled.
If FALSE then it will be disabled.}
Optional Properties[edit | edit source]
ObjectReference[] TriggeredByReferences
{OPTIONAL: LinkedRef will Enable/Disable if Triggered by any of these references.
If ALL arrays are empty then Enable/Disable happens if Triggered by anybody.}
ReferenceAlias[] TriggeredByAliases
{OPTIONAL: LinkedRef will Enable/Disable if Triggered by any of these aliases.
If ALL arrays are empty then Enable/Disable happens if Triggered by anybody.}
Faction[] TriggeredByFactions
{OPTIONAL: LinkedRef will Enable/Disable if Triggered by any of these factions.
If ALL arrays are empty then Enable/Disable happens if Triggered by anybody.}
Debug Properties[edit | edit source]
Bool ShowTraces
{Default = FALSE, Set to TRUE if you want the traces in this script to show up in the log.}