Help Home

Tutorials

Weapon Scr. I
Weapon Scr. II
Missions

Reference

All Commands
General
Load/Add
Graphics
HUD
Sounds
Player
Terrain
Projectiles
Particles
Collision
Objects
AI
Nodes
Missions

Commands: nodes

Legend

  • X - X is a number
  • 'X' - X is a string (a letter/word/text)
  • [X=0] - X is an optional parameter with value 0 when omitted (NEVER add [] to your script!)
  • hard sync - command is hard synced

getnodex(NODE)

Parameters:
NODE - name of a node
Returns:
X - x coordinate of node
Returns the X coordinate/position of NODE.

getnodey(NODE)

Parameters:
NODE - name of a node
Returns:
Y - y coordinate of node
Returns the Y coordinate/position of NODE.

nodetable()

Returns:
NODE TABLE - a table containing node names
Returns a table/array which contains the names of all nodes in the game. Nodes can be placed with the map editor and are invisible in-game. They are commonly used for missions and they allow mission creators to easily specify positions on maps right in the editor.

You do not have to specify a name for nodes. Nodes without a name will automatically get a name consisting of their X and Y position, separated with "|".
Example: A node with X position 2 and Y position 5 and without a name would automatically get the name "2|5"

NOTE: Nodes which have been created with the command createobject will NOT be listed by this command! Those nodes don't have a name either. So this command only works for nodes which have been set in the editor.