Difference between revisions of "OnNiNodeUpdate - Form"

From the CreationKit Wiki
Jump to navigation Jump to search
m (Cecell moved page OnNiNodeUpdate to OnNiNodeUpdate - Form: Whoops - adding owning script to name)
 
(7 intermediate revisions by the same user not shown)
Line 4: Line 4:
'''Member of:''' [[ActiveMagicEffect Script]], [[Form Script]], [[ObjectReference Script]]
'''Member of:''' [[ActiveMagicEffect Script]], [[Form Script]], [[ObjectReference Script]]


Event called when a NetImmerseNode is updated.
Event called when a NetImmerse node is updated.


== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
Function RegisterForNiNodeUpdate() native
Event OnNiNodeUpdate()
</source>
</source>


== Parameters ==
== Parameters ==
None
== Return Value ==
None
None


== Examples ==
== Examples ==
<source lang="papyrus">
Event OnNiNodeUpdate()
; Have the player 'activate' the door
  Debug.Trace("An NiNode update event was received!")
NeatDoor.Activate(Game.GetPlayer())
EndEvent
</source>
<br>
<source lang="papyrus">
; Have the player 'activate' the door, bypassing any blocked activation and NOT sending an event to any script
NeatDoor.Activate(Game.GetPlayer(), true)
</source>
 
== Notes ==
If the object reference has had activation processing blocked, this will still send the [[OnActivate - ObjectReference|OnActivate]] event to scripts attached to the object, but will ignore normal processing (i.e. picking up the object, opening the door, etc). Unless, of course, you have the abDefaultProcessingOnly parameter set to true, in which case ''no'' event is sent, and the block flag is ignored.


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ActiveMagicEffect Script]]
*[[UseIdleMarker (Procedure)]]
*[[Alias Script]]
*[[Activate]]
*[[Form Script]]
*[[Activate (Procedure)]]
*[[RegisterForNiNodeUpdate - Form]]
*[[Activator]]
*[[UnregisterForNiNodeUpdate - Form]]
*[[BlockActivation - ObjectReference]]
*[[OnActivate - ObjectReference]]

Latest revision as of 22:47, 1 December 2021

Member of: ActiveMagicEffect Script, Form Script, ObjectReference Script

Event called when a NetImmerse node is updated.

Syntax[edit | edit source]

Event OnNiNodeUpdate()

Parameters[edit | edit source]

None

Examples[edit | edit source]

Event OnNiNodeUpdate()
  Debug.Trace("An NiNode update event was received!")
EndEvent

See Also[edit | edit source]