OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Captain Crunch on 17 Apr 2007, 02:10:28
-
Hi there.
Is it possible to verify if any unit within a trigger just threw a grenade?
-
Try this in the trigger's condition (give a name to the trigger and change triggername by that name and change 100 by the trigger's radious).
count nearestObjects [getPos triggername select 0, getPos triggername select 1, getPos triggername select 2, ["GrenadeHand"], 100] > 0
-
Hi Mandoble.
I tried your snippet but I get an error message:
'count l#l NearestObjects [GetPos GrenadeTrig Select...'
Error 5 elements provided, 3 expected
Any other ideas? Thanx again!
-
Then try:
count (getPos GrenadeTrig nearObjects ["GrenadeHand", 100]) > 0
-
YES!
This works great! Thank You very much!
Jason