object.is_in_use

Check whether this object is an Armor Ability currently being used by a player.

Example

for each player do
   global.object[0] = current_player.get_armor_ability()
   if global.object[0].is_of_type(armor_lock) and global.object[0].is_in_use() then
      global.object[0].delete()
      game.show_message_to(current_player, none, "don't do that")
   end
end

Notes

See also