Mod:Creation Kit/Activate - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

Activates this item with the specified reference as the activator.

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

Parameters

 * 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
True if default activation processing was performed (and succeeded). Will return false if activation was blocked, or the activation failed for some other reason.

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

Known Issues
When called on a stack of items dropped by the player, Activate will return only one item from the stack.