Template:Function Table

From the CreationKit Wiki
Jump to navigation Jump to search


Member of: ObjectReference Script

Activates this item with the specified reference as the activator.

Syntax[edit source]

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

Parameters[edit source]

  • 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 Value[edit source]

return info

Examples[edit source]

; 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)

Notes[edit source]

Some notes, a reference: OnActivate

See Also[edit source]