Latite Scripting Documentation (Exports)
Exports > feature/command > CommandEvents
Interface
Source: feature/command.d.ts:1
execute:
Function
Source: feature/command.d.ts:9
( label:
string, args:string[], commandLine:string):booleanCalled on any command being used.
Source: feature/command.d.ts:9
Parameter Type Description label stringThe beginning of the command line (for example, 'test'in '.test 123')args string[]The list of arguments of the command line (for example, ['123']in '.test 123')commandLine stringThe command line (for example, '.test 123 test'in '.test 123 test')
booleanWhether the command usage is successful or not (return
falseif the user misused the command)