Difference between revisions of "CreateArray"
Jump to navigation
Jump to search
imported>Haama (Created) |
imported>Haama m (Standardized) |
||
Line 7: | Line 7: | ||
(ArrayID:long) CreateArray ''EspID:long'' ''Size:long'' ''Protected:Short'' | (ArrayID:long) CreateArray ''EspID:long'' ''Size:long'' ''Protected:Short'' | ||
Creates a new array tagged with the EspID, and returns the ArrayID. | |||
*If EspID is not specified then the EspID is automatically associated to the calling mod. | *If EspID is not specified then the EspID is automatically associated to the calling mod. | ||
*If Size is not specified, the array size is set to 0. | *If Size is not specified, the array size is set to 0. |
Revision as of 13:49, 14 February 2008
Beta Function
This function has not been fully tested yet, and is not ready to be used in a released mod. It may not have the same function in later versions, may require the script to be recompiled, or simply may be removed. Use for testing purposes only until the author of the function says otherwise.
A command for Pluggy
Syntax:
(ArrayID:long) CreateArray EspID:long Size:long Protected:Short
Creates a new array tagged with the EspID, and returns the ArrayID.
- If EspID is not specified then the EspID is automatically associated to the calling mod.
- If Size is not specified, the array size is set to 0.
- If Protected is not 0, then the array will be write-protected from other mods, and only the associated mod will ever be able to modify the array. Setting Protected to 1 is recommended if you don’t want your array to be modified by another mod.
- If the ESP file is not active upon reloading a savegame, all the associated arrays are destroyed when/if the player saves.