Difference between revisions of "CreateArray"
imported>Speedo |
imported>Quetzilla m |
||
| (One intermediate revision by one other user not shown) | |||
| Line 4: | Line 4: | ||
'''Syntax:''' |
'''Syntax:''' |
||
(ArrayID:long) CreateArray ''EspID:long |
(ArrayID:long) CreateArray ''EspID:long Size:long Protected:short RefuseZero:short'' |
||
Creates a new array tagged with the EspID, and returns the ArrayID. |
Creates a new array tagged with the EspID, and returns the ArrayID. |
||
| Line 10: | Line 10: | ||
*If Size is not specified, the array size is set to 0. |
*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 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 ''RefuseZero'' is 1, then the returned ArrayId will never be zero. |
|||
*If the ESP file is not active upon reloading a savegame, all the associated arrays are destroyed when/if the player saves. |
*If the ESP file is not active upon reloading a savegame, all the associated arrays are destroyed when/if the player saves. |
||
Latest revision as of 04:05, 29 May 2008
A command for Pluggy
Syntax:
(ArrayID:long) CreateArray EspID:long Size:long Protected:short RefuseZero:short
Creates a new array tagged with the EspID, and returns the ArrayID.
- If EspID is not specified or is -1, 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 RefuseZero is 1, then the returned ArrayId will never be zero.
- If the ESP file is not active upon reloading a savegame, all the associated arrays are destroyed when/if the player saves.