Port Flags

For normal ports, do not have to define their port types as they are automatically set to DEFAULT.

-- An example of how port flags are used:
        ports={
            {0,1/2,WEAPON_IN|WEAPON_OUT} 
            {1,0,NONE} 
            {2,1/2,WEAPON_IN|WEAPON_OUT}
            {3,0,NONE}
        }

Here are the different port flags:

  • THRUSTER_OUT: where thrust will be generated from. Must be on a side facing left, the back of the shape. Colored yellow.
  • THRUSTER_IN: where thrusters connect to other thrusters and to normal blocks. Colored blue.
  • WEAPON_OUT: where cannons and lasers fire from. Connects to WEAPON_IN. Colored yellow.
  • WEAPON_IN: connects to WEAPON_OUT to add cannon boost modifiers (does not work for lasers). Colored blue.
  • LAUNCHER: port of a LAUNCHER block that launchables will generate from. Colored yellow.
  • MISSILE: port of a launchable (a replicateBlock) that will attach to one of its launcher's LAUNCHER ports. Colored blue.
  • ROOT: port of a ROOT or SEED block used by plants and buildings to attach to ENVIRONMENT blocks. Colored yellow. See here for how to use this properly.
  • NONE: no port on this side, ensures that it always draws a line. Define as {<side index>,0,NONE}.
  • NORMAL: same as defining the port with no port type.

If a side has no defined ports then it will render no line.