CreateBoolArray - Utility: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
(Created page with "Category:Scripting Category:Papyrus '''Member of:''' Utility Script Creates an array of Bool values, with the specified length. '''Be careful when using this func...")
 
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Bool[] Function CreateBoolArray(Int size, Bool fill = False) Native
Bool[] Function CreateBoolArray(Int size, Bool fill = False) Native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 18: Line 18:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Bool[] myArray = Utility.CreateBoolArray(129) ; Create an array longer than the Papyrus compiler would allow
Bool[] myArray = Utility.CreateBoolArray(129) ; Create an array longer than the Papyrus compiler would allow
</source>
</syntaxhighlight>


== Notes ==
== Notes ==

Navigation menu