BlockActivation - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
(→‎Notes: Reorganized section and added note that activation blocks aren't removed if a ReferenceAlias script called it and the alias no longer points at the object.)
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Function BlockActivation(bool abBlocked = True) native
Function BlockActivation(bool abBlocked = True) native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 18: Line 18:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Blocks this door from processing activation normally
; Blocks this door from processing activation normally
MyDoor.BlockActivation()
MyDoor.BlockActivation()
</source>
</syntaxhighlight>
<br/>
<br/>
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Tells the door to handle activation normally
; Tells the door to handle activation normally
MyDoor.BlockActivation(false)
MyDoor.BlockActivation(false)
</source>
</syntaxhighlight>


== Notes ==
== Notes ==

Navigation menu