Editing
Alias Script
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Native base script for every alias in the game. Don't confuse this for [[ReferenceAlias Script]] which you are more likely to use. == Definition == <syntaxhighlight lang="papyrus"> ScriptName Alias </syntaxhighlight> == Properties == None == Global Functions == None == Member Functions == :'''Quest [[GetOwningQuest - Alias|GetOwningQuest]]()''' :*Returns the [[Quest Script|Quest]] that owns this alias. :'''[[RegisterForAnimationEvent - Form|RegisterForAnimationEvent]](ObjectReference ''akSender'', String ''asEventName'')''' :*Registers this alias to receive the specified animation event from the specified object. :'''[[RegisterForLOS - Form|RegisterForLOS]](Actor ''akViewer'', ObjectReference ''akTarget'')''' :*Registers this alias to receive gain and lost LOS events between the viewer and the target. :'''[[RegisterForSingleLOSGain - Form|RegisterForSingleLOSGain]](Actor ''akViewer'', ObjectReference ''akTarget'')''' :*Registers this alias to receive a single LOS gain event when the viewer sees the target. :'''[[RegisterForSingleLOSLost - Form|RegisterForSingleLOSLost]](Actor ''akViewer'', ObjectReference ''akTarget'')''' :*Registers this alias to receive a single LOS lost event when the viewer loses sight of the target. :'''[[RegisterForSingleUpdate - Form|RegisterForSingleUpdate]](Float ''afInterval'')''' :*Registers this alias to receive a single update event in the specified time. :'''[[RegisterForSingleUpdateGameTime - Form|RegisterForSingleUpdateGameTime]](Float ''afInterval'')''' :*Registers this alias to receive a single update event in the specified number of game hours. :'''[[RegisterForSleep - Form|RegisterForSleep]]()''' :*Registers this alias to receive sleep events for when the player goes to sleep or wakes up. :'''[[RegisterForTrackedStatsEvent - Form|RegisterForTrackedStatsEvent]]()''' :*Registers this alias to receive tracked stats events for when tracked stats are updated. :'''[[RegisterForUpdate - Form|RegisterForUpdate]](Float ''afInterval'')''' :*Registers this alias to receive update events with the specified interval, or changes the update interval. :'''[[RegisterForUpdateGameTime - Form|RegisterForUpdateGameTime]](Float ''afInterval'')''' :*Registers this alias to receive update events with the specified interval in game time hours, or changes the update interval. :'''[[StartObjectProfiling - Form|StartObjectProfiling]]()''' :*Starts profiling all scripts attached to this alias. :'''[[StopObjectProfiling - Form|StopObjectProfiling]]()''' :*Stops profiling all scripts attached to this alias. :'''[[UnregisterForAnimationEvent - Form|UnregisterForAnimationEvent]](ObjectReference ''akSender'', String ''asEventName'')''' :*Unregisters this alias from receiving the specified animation event from the specified object. :'''[[UnregisterForLOS - Form|UnregisterForLOS]](Actor ''akViewer'', ObjectReference ''akTarget'')''' :*Unregisters this alias from any LOS events between the viewer and target. :'''[[UnregisterForSleep - Form|UnregisterForSleep]]()''' :*Unregisters this alias from sleep events. :'''[[UnregisterForTrackedStatsEvent - Form|UnregisterForTrackedStatsEvent]]()''' :*Unregisters this alias from tracked stats events. :'''[[UnregisterForUpdate - Form|UnregisterForUpdate]]()''' :*Unregisters this alias from update events. :'''[[UnregisterForUpdateGameTime - Form|UnregisterForUpdateGameTime]]()''' :*Unregisters this alias from game time update events. == SKSE Member Functions == :'''String [[GetName - Alias|GetName]]()''' :* Returns the unique name of the alias (not its display name). Used by calls to [[GetAliasByName - Quest|GetAliasByName]]. :'''Int [[GetID - Alias|GetID]]()''' :* Returns the ID of the alias. Used by calls to [[GetNthAlias - Quest|GetNthAlias]] and [[GetAlias - Quest|GetAlias]] :'''[[RegisterForNiNodeUpdate]]()''' :*Registers the script for when a QueueNiNodeUpdate is called :'''[[UnregisterForNiNodeUpdate]]()''' :*Unregisters the script for when a QueueNiNodeUpdate is called == Events == :'''[[OnAnimationEvent - Form|OnAnimationEvent]](ObjectReference ''akSource'', String ''asEventName'')''' :*Received when one of animation events we are listening for is received. :'''[[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. :'''[[OnGainLOS - Form|OnGainLOS]](Actor ''akViewer'', ObjectReference ''akTarget'')''' :*Received when the viewer goes from not seeing the target to seeing the target - if this alias is registered. :'''[[OnLostLOS - Form|OnLostLOS]](Actor ''akViewer'', ObjectReference ''akTarget'')''' :*Received when the viewer goes from seeing the target to not seeing the target - if this alias is registered. :'''[[OnReset - ObjectReference|OnReset]]()''' :*Event received when this object is reset - an alias only receives this even if it has an objectreference within it. :'''[[OnSleepStart - Form|OnSleepStart]](Float ''afSleepStartTime'', Float ''afDesiredSleepEndTime'')''' :*Received when the player goes to sleep. :'''[[OnSleepStop - Form|OnSleepStop]](Bool ''abInterrupted'')''' :*Received when the player wakes up or is interrupted in sleep. :'''[[OnTrackedStatsEvent - Form|OnTrackedStatsEvent]](String ''asStat'', Int ''aiStatValue'')''' :*Received when tracked stats are updated. :'''[[OnUpdate - Form|OnUpdate]]()''' :*Received at periodic intervals, if the alias is registered. :'''[[OnUpdateGameTime - Form|OnUpdateGameTime]]()''' :*Received at periodic intervals of game time, if the alias is registered. == SKSE Events == '''[[OnNiNodeUpdate]](ObjectReference ''akActor'')''' ==Notes== :*This object is often confused with [[ReferenceAlias Script]]. You probably mean to be using that. [[Category:Scripting]] [[Category:Papyrus]] [[Category:Script Objects]]
Summary:
Please note that all contributions to the CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
CreationKit:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Landing page
Tutorials
Game Systems
Editor Reference
Scripting Reference
Recent changes
Help
Tools
What links here
Related changes
Special pages
Page information
Page values