on_command_finshed event
Posted: Wed Jun 22, 2016 8:57 am
The problem is that there is currently (in my opinion) no comfortable way to see whetever an unit has finished its command and how it finished it.
I don't like having to poll LuaEntity::has_command() or LuaUnitGroup::state.
So a on_command_finished event would be great, maybe with parameters of kind
event.player_index
event.entity
if the command was a compound command of type or
maybe also give the index into at which it stopped: event.stopped_index.
Furthermore I would have a question regarding
The docs say:
SixpackButtermilch
I don't like having to poll LuaEntity::has_command() or LuaUnitGroup::state.
So a on_command_finished event would be great, maybe with parameters of kind
event.player_index
event.entity
if the command was a compound command of type
Code: Select all
defines.compoundcommandtype.logical_and
Code: Select all
defines.compoundcommandtype.logical_or
Code: Select all
define.scommand.compound.commands
Furthermore I would have a question regarding
Code: Select all
defines.compoundcommandtype.return_last
Which kind of result does it return to whom?compoundcommandtype.return_last Perform all the commands and return lasts result
nice one
Kind regardsHow are commands compounded in a compounded compound command commanding compound composts.
SixpackButtermilch