Home   Help Search Login Register  

Author Topic: How do i check if someone has no weapons?  (Read 962 times)

0 Members and 1 Guest are viewing this topic.

Offline U_Z

  • Members
  • *
How do i check if someone has no weapons?
« on: 12 May 2007, 18:10:27 »
How do I check if someone has no weapons?

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: How do i check if someone has no weapons?
« Reply #1 on: 12 May 2007, 18:19:11 »
You may try
Code: [Select]
count weapons unitname == 0as condition. But Binoculars, for example, are counted also as a weapon, so you may use also a
Code: [Select]
!canFire unitname to be sure the unit cannot fire. It may has weapons, but no ammo, or it may have ammo but no weapons.