Here's how to find out:
Try it
I.e put yourself and a dude in the mission editor (let's call him
dude), remove all his weapons and have a radio trigger present you with the result of the "hasWeapon" command.
In dude's init field:
removeAllWeapons this
In a radio trigger:
hint format ["dude hasWeapon ""null"" equals %1", dude hasWeapon "null"]
What I think? It wont give you the result you're after, i.e. wether dude has any weapons
at all.
hasWeapon checks if a unit has a
certain weapon, not if it has no weapons at all. But perhaps "null" is interpreted as "no weapon at all". That'd be cool...
Good luck!