How make conditional branch based on Actor(ActorID) has "empty hands" aka no weapon equipped

Hello,

I need run some code, based on equiped type of weapon. I have no problem if weapon exist and has a type.

Problem is, when actor has NO weapon equipped (he should got skills Punch and Kick in this case)

I tried
If (($gameActors.actor(ActorID).isWtypeEquipped(0)) === true)
If (($gameActors.actor(ActorID).isWtypeEquipped(null)) === true)

No luck. I know how to script call weapon type equipped, just dunno how to check
"if ($gameActors.actor(ActorID).EmptyHands === true"

Thank you for help
Try this:
Code:
$gameActors.actor(actorId)._equips[equipmentIndex]._dataClass === ""

Index starts at 0 for the first slot, I.E. the weapon.

Original thread: https://forums.rpgmakerweb.com/threads/how-make-conditional-branch-based-on-actor-actorid-has-empty-hands-aka-no-weapon-equipped.82377/