FinishCommand

Category: Objects / Commands
Since engine version: 1.0 OC

Description

Ends a command in the command stack of an object. A finished command stays in the stack until it would be time for it to be executed and is removed only then.

Syntax

bool FinishCommand(bool success, int command_num);

Parameters

success:
Whether to evaluate the ended command as successful.
command_num:
[opt] Index of the command. 0 is the current command, other values indicate the following commands.
See also: AddCommand, AppendCommand, GetCommand, SetCommand
Günther, 2004-04
Newton, 2013-12