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: wherecannonsand lasers fire from. Connects toWEAPON_IN. Colored yellow.WEAPON_IN: connects toWEAPON_OUTto add cannon boost modifiers (does not work for lasers). Colored blue.LAUNCHER: port of aLAUNCHERblock that launchables will generate from. Colored yellow.MISSILE: port of a launchable (areplicateBlock) that will attach to one of its launcher'sLAUNCHERports. Colored blue.ROOT: port of aROOTorSEEDblock used by plants and buildings to attach toENVIRONMENTblocks. 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.