Difference between revisions of "OnLostLOS - Form"
Jump to navigation
Jump to search
imported>Rhavlovick m (1 revision: Clobber re-import by Henning) |
imported>Threedee m (→Parameters: LOS is lost, the the actor can NOT see the target ;)) |
||
Line 13: | Line 13: | ||
== Parameters == | == Parameters == | ||
*akViewer: The [[Actor Script|Actor]] that sees the target. | *akViewer: The [[Actor Script|Actor]] that sees the target. | ||
*akTarget: The [[ObjectReference Script|ObjectReference]] that the actor can | *akTarget: The [[ObjectReference Script|ObjectReference]] that the actor can no longer see. | ||
== Example == | == Example == |
Revision as of 00:19, 11 July 2012
Member of: ActiveMagicEffect Script, Alias Script, and Form Script
Event called when a viewer goes from seeing the target, to not seeing the target - if this active magic effect/alias/form is registered for it.
Syntax
Event OnLostLOS(Actor akViewer, ObjectReference akTarget)
Parameters
- akViewer: The Actor that sees the target.
- akTarget: The ObjectReference that the actor can no longer see.
Example
Function SomeFunction()
RegisterForSingleLOSLost(Game.GetPlayer(), Kettle) ; Before we can use OnLostLOS we must register.
EndFunction
Event OnLostLOS(Actor akViewer, ObjectReference akTarget)
;/ If other registrations had been done, we would want to check the viewer and target
But since we only registered for one we know what it is
Since we only did single los lost, we'll only get this once /;
Debug.Trace("Player just looked away from the kettle, so boil it!")
endEvent
Notes
- Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed.
- This event is not relayed to any aliases or magic effects attached to the form.