Template:Function Table

Revision as of 21:52, 1 December 2021 by Cecell (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Member of: ObjectReference Script

Activates this item with the specified reference as the activator.

SyntaxEdit

bool Function Activate(ObjectReference akActivator, bool abDefaultProcessingOnly = false) native

ParametersEdit

  • akActivator: Who will activate this object.
  • abDefaultProcessingOnly: If true, no OnActivate event will be sent to any scripts and the object will ignore the blocked flag.
    • Default: False

Return ValueEdit

return info

ExamplesEdit

; Have the player 'activate' the door
NeatDoor.Activate(Game.GetPlayer())


; Have the player 'activate' the door, bypassing any blocked activation and NOT sending an event to any script
NeatDoor.Activate(Game.GetPlayer(), true)

NotesEdit

Some notes, a reference: OnActivate

See AlsoEdit