Difference between revisions of "Papyrus FAQs"

83 bytes added ,  15:04, 25 May 2016
imported>Digitalparanoid
imported>Digitalparanoid
Line 285: Line 285:
=== Are arrays limited to 128 elements? ===
=== Are arrays limited to 128 elements? ===


According to SmkViper:
* Arrays that are created by scripts via the <code>New</code> operation or <code>Add()</code> function '''are''' limited to 128 elements.
<pre>
* Arrays returned by native functions, and editor-filled array properties, are '''not''' limited to 128 elements.
There is still an internal 128 limit on array items. Attempting to make an array larger than that will spit out an error at runtime.
</pre>


=== How do I create a dynamic array? ===
=== How do I create a dynamic array? ===