Category: Objects
/ Commands
Since engine version: 1.0 OC
GetCommand
Description
Returns information on a current command of an object. If the object does not have any commands set,
nil
is returned for all queries.Syntax
any GetCommand(int element, int command_num);
Parameters
- element:
- [opt] Data to be returned. Unspecified or 0: Name, 1: Target, 2: TargetX, 3: TargetY, 4: Target2, 5: Data
- command_num:
- [opt] Number of the command. 0 is the currently active command, other values are the following (super-level) commands.