by using lua scripting how can i give attack command to specific units like defense tower and air ballista ?
I tried this
createUnit('defense_tower', 0, startLocation(0))
givePositionCommand(lastCreatedUnit(), 'attack',startLocation(0))
createUnit('air_ballista', 0, startLocation(0))
givePositionCommand(lastCreatedUnit(), 'attack',startLocation(0))
and this
createUnit('defense_tower', 0, startLocation(0))
givePositionCommand(lastCreatedUnit(), 'attack_on',startLocation(0))
createUnit('air_ballista', 0, startLocation(0))
givePositionCommand(lastCreatedUnit(), 'attack_on',startLocation(0))
it gives that invalid command in both cases
how can give attack command to these units using lua scripting ?