OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: sharkattack on 24 Oct 2009, 12:28:31

Title: trigger problem SOLVED !
Post by: sharkattack on 24 Oct 2009, 12:28:31
hi all

tried searching  and come up with ziltch yet i know ive seen a similar post somewhere

id like a trigger set for anybody to activate it  other than a C130 ?


best wishes  shark-attack   :good:
Title: Re: trigger problem
Post by: XCess on 24 Oct 2009, 13:31:11
Code: [Select]
_lister = list triggername
_x = count _lister
if (c130name in _lister) then {_x = _x - 1};
if (_x > 0) then {triggerTrue = true};

Or something along those lines..
Title: Re: trigger problem
Post by: Shuko on 24 Oct 2009, 15:33:09
Just count thislist with typeof condition?

{typeof _x != "C130J"} count thislist > 0

Or

{typeof (vehicle _x) != "C130J"} count thislist > 0
Title: Re: trigger problem
Post by: sharkattack on 25 Oct 2009, 11:00:48
thanks a million shuko !
         :good:


best wishes