First question
I wonder if is possible to determine the "kind" of an object (men, tank, apc, and so on)
I've tried these lines:
? typeof _dude != "Man" : exit
?_dude != typeof "Man" : exit
In the first case I receive an error message (about object and string).
In the second case I don't receive any error message, but the script exit even if _dude is a man (maybe because i'm using the wrong command or beacuse ofp doesn't recognize "man" as a class?).
My overall objective is to exit the script if the object is not a man (it's part of a close combat script).
Second question
Is there a way to determine if a man is disarmed? Or have i to check if the man hasn't any kind of weapon that may be presents in the scenario?
Thanks for your help
Klavan