+hasunit

eventmanual page 38

+hasunit <player> "monster name"

Arguments

ArgumentTypeRequiredReferences
playerintyesplayer
monster namestryesmonster

Takes 2 arguments.

What it does

True if player has this kind of unit somewhere in the world. Also sets target unit (player -1 = any player)

— modding manual, page 38 (as an event command)

← All commands