Background for Skyrim SE
Member of the Form script
voidfunctionRegisterForUpdate(floatafInterval)Native

[DEV SERVER] Loading description...


Caveats

CK Wiki - Notes

  • Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed.
  • You should call Form.UnregisterForUpdate() before calling this function a second time or before calling Form.RegisterForSingleUpdate(...), or strange behavior may result. Testing suggests that calling RegisterForSingleUpdate after RegisterForUpdate will replace the periodic update's timer interval with the one provided in the call to RegisterForSingleUpdate and will not start a single-update timer. It also suggests that subsequent calls to RegisterForUpdate without an intervening UnregisterForUpdate do not behave as expected.

Parameters

floatafInterval

CK Wiki Description

How often, in seconds, the update event should be sent


Examples

; Register to receive update events every 10 real-time seconds
RegisterForUpdate(10.0)

Auto-Generated Example

float myFloat__afInterval

myForm__toCallFunctionOn.RegisterForUpdate(myFloat__afInterval)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.