Difference between revisions of "CopyArray"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Haama
(Created)
 
imported>Speedo
(Remove beta tag)
Line 1: Line 1:
__NOTOC__
__NOTOC__


{{Beta}}
A command for [[:Category:Pluggy|Pluggy]]
A command for [[:Category:Pluggy|Pluggy]]


Line 11: Line 10:
*If Size is specified, the new array will be of the specified size (truncated or expanded).
*If Size is specified, the new array will be of the specified size (truncated or expanded).
*If you want to modify an array from another mod, you will need to set the Global flag to 1. If Global is 0 or unset the function will fail. If the array is protected the function will fail.
*If you want to modify an array from another mod, you will need to set the Global flag to 1. If Global is 0 or unset the function will fail. If the array is protected the function will fail.
*If the array does not exists, it returns -1.
*If the array does not exist, it returns -1.


==Notes==
==Notes==

Revision as of 14:55, 18 February 2008


A command for Pluggy

Syntax:

 (ArrayID:long) CopyArray ArrayID:long Size:long

Creates a copy of an array and returns the newly created ArrayID.

  • If Size is not specified, the new array size is the same as the original.
  • If Size is specified, the new array will be of the specified size (truncated or expanded).
  • If you want to modify an array from another mod, you will need to set the Global flag to 1. If Global is 0 or unset the function will fail. If the array is protected the function will fail.
  • If the array does not exist, it returns -1.

Notes

  • The new array has its EspID set to the calling esp