Universal way to detect comanders in all games[SOLVED]
Posted: 15 Apr 2012, 19:22
Ok I m not lua coder nor I m into game developing, I m creating map and all I need to know if it is commander or not, before life was easy .isCommander and easy way to detect coms in all mods? because currently I m detecting only zero-k coms.
if UnitDefs[unitDefID].customParams.commtype then
EDIT: if UnitDefs[unitDefID].customParams.commtype or UnitDefs[unitDefID].customParams.iscommander then
works on BA and zk and similar thanks nixtux.
is features now unatackable? Because I have big feature and even when I set manual fire where aoe would hit it unit refuses attack it. It wasnt like this in 82.0
if UnitDefs[unitDefID].customParams.commtype then
EDIT: if UnitDefs[unitDefID].customParams.commtype or UnitDefs[unitDefID].customParams.iscommander then
works on BA and zk and similar thanks nixtux.
is features now unatackable? Because I have big feature and even when I set manual fire where aoe would hit it unit refuses attack it. It wasnt like this in 82.0