command is an attribute of the COMMAND feature and identifies that the ship gets A.I.
Command Module of a ship
The COMMAND feature is applied with the command block attribute.
Example code for a command module block:command=
{faction=2},
^ The command attribute identifies this block as a command module, and declares which faction it will use for behaviors per factions.lua.
Missiles/Drones
A missile without COMMAND is just a straight-firing rocket, but a missile with COMMAND is guided to enemy targets.
Example code for a missile:replicateBlock=
{command=
{},
shape=MISSILE,
features=COMMAND
|THRUSTER|EXPLODE,
group=2,
lifetime=5.000,
points=2,
durability=0.100,
density=0.150,
fillColor=0xecfe00,
fillColor1=0xa5d618,
lineColor=0x3b9b3b,
capacity=100.000,
thrusterForce=1500.000,
thrusterColor=0x9095aeac,
thrusterColor1=0x9075ceac,
explodeDamage=40.000,
explodeRadius=20.000
},
A.I. flags can also be defined on a block as: command={ATTACK, DODGES, SMART-FIRE}