Difference between revisions of "Alias Script"

49 bytes added ,  13:41, 20 February 2012
imported>Jog
imported>Jog
Line 74: Line 74:


== Events ==
== Events ==
*Event [[OnAnimationEvent - Form|OnAnimationEvent]](ObjectReference akSource, string asEventName)
'''Event [[OnAnimationEvent - Form|OnAnimationEvent]](ObjectReference akSource, string asEventName)'''
**Received when one of animation events we are listening for is received.
*Received when one of animation events we are listening for is received.
*Event [[OnAnimationEventUnregistered - Form|OnAnimationEventUnregistered]](ObjectReference akSource, string asEventName)
 
**Received when one of the animation events we are listening for has been automatically unregistered by the game due to the target animation graph unloading.
'''Event [[OnAnimationEventUnregistered - Form|OnAnimationEventUnregistered]](ObjectReference akSource, string asEventName)'''
*Event [[OnGainLOS - Form|OnGainLOS]](Actor akViewer, ObjectReference akTarget)
*Received when one of the animation events we are listening for has been automatically unregistered by the game due to the target animation graph unloading.
**Received when the viewer goes from not seeing the target to seeing the target - if this alias is registered.
 
*Event [[OnLostLOS - Form|OnLostLOS]](Actor akViewer, ObjectReference akTarget)
'''Event [[OnGainLOS - Form|OnGainLOS]](Actor akViewer, ObjectReference akTarget)'''
**Received when the viewer goes from seeing the target to not seeing the target - if this alias is registered.
*Received when the viewer goes from not seeing the target to seeing the target - if this alias is registered.
*Event [[OnReset - ObjectReference|OnReset]]()
 
**Event received when this object is reset (usually when the quest the alias is attached to starts up).
'''Event [[OnLostLOS - Form|OnLostLOS]](Actor akViewer, ObjectReference akTarget)'''
*Event [[OnSleepStart - Form|OnSleepStart]](float afSleepStartTime, float afDesiredSleepEndTime)
*Received when the viewer goes from seeing the target to not seeing the target - if this alias is registered.
**Received when the player goes to sleep.
 
*Event [[OnSleepStop - Form|OnSleepStop]](bool abInterrupted)
'''Event [[OnReset - ObjectReference|OnReset]]()'''
**Received when the player wakes up or is interrupted in sleep.
*Event received when this object is reset (usually when the quest the alias is attached to starts up).
*Event [[OnTrackedStatsEvent - Form|OnTrackedStatsEvent]](string asStat, int aiStatValue)
 
**Received when tracked stats are updated.
'''Event [[OnSleepStart - Form|OnSleepStart]](float afSleepStartTime, float afDesiredSleepEndTime)'''
*Event [[OnUpdate - Form|OnUpdate]]()
*Received when the player goes to sleep.
**Received at periodic intervals, if the alias is registered.
 
*Event [[OnUpdateGameTime - Form|OnUpdateGameTime]]()
'''Event [[OnSleepStop - Form|OnSleepStop]](bool abInterrupted)'''
**Received at periodic intervals of game time, if the alias is registered.
*Received when the player wakes up or is interrupted in sleep.
 
'''Event [[OnTrackedStatsEvent - Form|OnTrackedStatsEvent]](string asStat, int aiStatValue)'''
*Received when tracked stats are updated.
 
'''Event [[OnUpdate - Form|OnUpdate]]()'''
*Received at periodic intervals, if the alias is registered.
 
'''Event [[OnUpdateGameTime - Form|OnUpdateGameTime]]()'''
*Received at periodic intervals of game time, if the alias is registered.


==Notes==
==Notes==
*This object is often confused with [[ReferenceAlias Script]]. You probably mean to be using that.
*This object is often confused with [[ReferenceAlias Script]]. You probably mean to be using that.
Anonymous user