Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: How do i check if someone has no weapons?  (Read 1142 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.