Background for Skyrim SE
Member of the JValue script
intfunctionaddToPool(intobject, stringpoolName)NativeGlobal

Description

Documentation Comment

Handly for temporary objects (objects with no owners) - the pool 'locationName' owns any amount of objects, preventing their destuction, extends lifetime.
Do not forget to clean the pool later! Typical use:
int jTempMap = JValue.addToPool(JMap.object(), "uniquePoolName")
int jKeys = JValue.addToPool(JMap.allKeys(someJMap), "uniquePoolName")
and anywhere later:
JValue.cleanPool("uniquePoolName")


Parameters

  1. intobject

  2. stringpoolName


Examples

Auto-Generated Example

int myInt__object
string myString__poolName

int returnedValue = JValue.addToPool(myInt__object, myString__poolName)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.