IsTowered
- Parameters
target unit- comment
Returns either true if the parameter target is guarded by a tower, the tower can be a custom-made unit but there are rules when checking if the target is guarded or not; the target has to be in the proximity of a base and a tower belonging to the AI player, however acquisition range and attack range of the tower doesn't affect whether the target is defended or not.
- patch
1.00
- Source
- common.ai (raise an issue to discuss on Github or submit a PR)
- return type
boolean- Source code
native IsTowered takes unit target returns boolean