Editing
RegisterForSingleUpdateGameTime - Form
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!
[[Category:Scripting]] [[Category:Papyrus]] [[Category:Non-delayed Native Function]] '''Member of:''' [[ActiveMagicEffect Script]], [[Alias Script]], and [[Form Script]] Registers this active magic effect/alias/form for a single [[OnUpdateGameTime - Form|update game time event]]. Of course, this means you don't need to call [[UnregisterForUpdateGameTime - Form|UnregisterForUpdateGameTime]](). Only the specific form, alias, or magic effect that registered will get the event - it will not be relayed to attached aliases or magic effects. == Syntax == <syntaxhighlight lang="papyrus"> Function RegisterForSingleUpdateGameTime(float afInterval) native </syntaxhighlight> == Parameters == *afInterval: In how much time (in game hours) the [[OnUpdateGameTime - Form|OnUpdateGameTime]]() should be triggered == Return Value == None == Examples == <syntaxhighlight lang="papyrus"> ; Just tell us when 5 days have passed in game RegisterForSingleUpdateGameTime(120.0) ; 24 * 5 </syntaxhighlight> == Notes == *Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed. *Registering for game time updates is only possible after the player has received full player controls. For the default game the earliest a game time update can be registered is when the player gets their hands freed just inside Helgen Keep (MQ101 stage 240). *Depending heavily on how you use it, using this function could cause your game to freeze under any of the following conditions: ** afInterval is expressed as X / Y where X and Y are both integers (no decimal points) and evaluate to less than 1. **afInterval is less than some number between 0.0244 and 0.0238. (1.0 / 41.0 and 1.0 / 42.0) *** Registering for a single update at an incredibly short interval does ''not'' appear to freeze the game, so long as it is not reregistered with a short interval within the update event. ==See Also== *[[ActiveMagicEffect Script]] *[[Alias Script]] *[[Form Script]] *[[RegisterForUpdateGameTime - Form]] *[[RegisterForSingleUpdate - Form]] *[[UnregisterForUpdateGameTime - Form]] *[[OnUpdateGameTime - Form]]
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