SetAttractionActive - ObjectReference

Revision as of 12:51, 19 November 2015 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ObjectReference Script

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

SyntaxEdit

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

ParametersEdit

  • 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 ValueEdit

None.

ExamplesEdit

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


; Resume sending Attraction Object events to actors with the AO_RadioWaves keyword
SecretSubmarine.SetAttractionActive(AO_RadioWaves)

NotesEdit

This change will be saved and loaded in saved games, but will be cleared when the reference unloads.

See AlsoEdit