Mod:Creation Kit/SetAttractionActive - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

This function sets whether this ObjectReference should send attraction-object story manager events to actors with the specified attraction keyword.

Syntax
Function SetAttractionActive(Keyword apKeyword, bool abActive = true) native

Parameters

 * apKeyword: Attraction keyword (one that already exists on this reference) to enable or disable from sending story manager attraction-object events to actors with that keyword.
 * abActive : If true, allow this reference to send story manager attraction-object to actors with this keyword (note that this is allowed by default). If false, disable sending story manager attraction-object events to actors with this keyword.
 * Default: true

Return Value
None.

Examples
SecretSubmarine.SetAttractionActive(AO_RadioWaves, false) SecretSubmarine.SetAttractionActive(AO_RadioWaves)
 * Stop sending Attraction Object events to actors with the AO_RadioWaves keyword.
 * Resume sending Attraction Object events to actors with the AO_RadioWaves keyword