Background for Skyrim SE
Member of the JAtomic script
intfunctionexchangeInt(intobject, stringpath, intvalue, boolcreateMissingKeys=false, intonErrorReturn=0)NativeGlobal

Description

Documentation Comment

Exchanges the value at the @path with the @value. Returns previous value.


Parameters

  1. intobject

  2. stringpath

  3. intvalue

  4. boolcreateMissingKeys=false

  5. intonErrorReturn=0


Examples

Auto-Generated Example

int myInt__object
string myString__path
int myInt__value
bool myBool__createMissingKeys
int myInt__onErrorReturn

int returnedValue = JAtomic.exchangeInt(myInt__object, myString__path, myInt__value, myBool__createMissingKeys, myInt__onErrorReturn)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.