OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: U_Z on 12 May 2007, 18:10:27

Title: How do i check if someone has no weapons?
Post by: U_Z on 12 May 2007, 18:10:27
How do I check if someone has no weapons?
Title: Re: How do i check if someone has no weapons?
Post by: Mandoble 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.