FANDOM


Function articles Edit

Please format function entries like addSphere. I have reproduced it for you here.


addSphere(<sSphereName>, <tPosition>, <fRadius>)
Description
Adds a sphere to a ".level" file.
Note: This is a note.
Example
addSphere("CarrierFleeSphere", {6010, 0, -30508,}, 434.294)
Arguments
<sSphereName>: the name of the sphere.
<tPosition>: a table containing the X, Y, and Z coordinates.
<fRadius>: the radius of the sphere.
Related Pages

{{DISPLAYTITLE: addSphere}}
<br />
;addSphere(<sSphereName>, <tPosition>, <fRadius>)

;Description
:Adds a sphere to a ".level" file.
:<span class="notes">Note: This is a note.</span>

;Example
:<syntaxhighlight lang="lua">addSphere("CarrierFleeSphere", {6010, 0, -30508,}, 434.294)</syntaxhighlight>

;Arguments
:'''<sSphereName>''': the name of the sphere.
:'''<tPosition>''': a table containing the X, Y, and Z coordinates.
:'''<fRadius>''': the radius of the sphere.

;Related Pages
*[[A related page]]
<br />

  1. Note the use of the DISPLAYTITLE template. Many HWRM function names have underscores in them, which MediaWiki strips out. So you have to force the wiki to show them using this template. Do this for functions that start with a lowercase letter as well.
  2. Note the use of the syntaxhighlight tag. This makes the code examples look pretty.
  3. Note the use of the semicolon and colons. This is much simpler than putting everything in bold type.
  4. Note the formatting of the blue text.
  5. Don't forget to add the article to the correct scope category!
  6. Note also that in the function pages, parameter names are prefixed with a letter depending on the data type. E.g. lowercase s stands for string, i stands for integer, f stands for float, t stands for table, and b stands for boolean.

Thanks!

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.