Background for Skyrim SE
Member of the Quest script
boolfunctionUpdateCurrentInstanceGlobal(GlobalVariableaUpdateGlobal)Native

Description

Wiki Description

Attempts to update the stored value of the given global in the instance data for the quest's current instance. The function only returns false on failure which can be caused by calling the function when there is no active instance on the quest or by passing a global not in the quest's text global list.

Documentation Comment

Updates current instance's value for the given global


Parameters

  1. GlobalVariableaUpdateGlobal

    CK Wiki Description

    The global on the quest whose cached value should be reset to its current value.


Examples

; Sets the side quest stage to 10 - and logs a message if it succeeds
if (!UpdateCurrentInstanceGlobal(GameHour))
  Debug.Trace("Failed to update GameHour value for quest")
endIf

Auto-Generated Example

GlobalVariable myGlobalVariable__aUpdateGlobal

bool returnedValue = myQuest__toCallFunctionOn.UpdateCurrentInstanceGlobal(myGlobalVariable__aUpdateGlobal)

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.