Difference between revisions of "CreateArray"

Jump to navigation Jump to search
80 bytes added ,  01:57, 10 March 2008
updated syntax
imported>Speedo
imported>Speedo
(updated syntax)
Line 4: Line 4:


'''Syntax:'''
'''Syntax:'''
  (ArrayID:long) CreateArray ''EspID:long'' ''Size:long'' ''Protected:Short''
  (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 11: Line 11:
*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 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.
*If ''RefuseZero'' is 1, then the returned ArrayId will never be zero.


[[Category: Functions (Pluggy)]]
[[Category: Functions (Pluggy)]]
[[Category: Array Functions (Pluggy)]]
[[Category: Array Functions (Pluggy)]]
Anonymous user

Navigation menu