Functions Documentation
View Function Edit Function
Name shpSetCommandCode
Syntax (shpSetCommandCode targetShip commandCode) -> True/Nil
Argument List targetShip: the ship that you want to set the command code for.
commandCode: the specific command code to set.
Returns True/Nil depending on success
Category ship, orders
Description Allows you to change the behaviour of a ship. The commandCode is a block if code that will be executed when the ship has no pending orders, or when shpCancelOrders is called. You can use gSource to refer to the targetShip inside this block
Example See BattleArena.xml in Vanilla Transcendence for an example
Comment