Mod:Creation Kit/BlockActivation - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

Blocks, or unblocks, normal activation processing for this reference. References with blocked activation will still send OnActivate events to scripts attached to them.

Syntax
Function BlockActivation(bool abBlocked = True, bool abHideActivateText = false) native

Parameters

 * abBlocked: Whether to block or unblock activation.
 * Default: True
 * abHideActivateText: Whether or not to hide all indications the object can be activated
 * Default: False

Return Value
None.

Examples
MyDoor.BlockActivation MyDoor.BlockActivation(true, true) MyDoor.BlockActivation(false)
 * Blocks this door from processing activation normally but still appear to be activated
 * Makes this door completely un-activatable, appearing to the player as if it were a staic
 * Tells the door to handle activation normally