Home   Help Search Login Register  

Author Topic: trigger problem SOLVED !  (Read 1285 times)

0 Members and 1 Guest are viewing this topic.

Offline sharkattack

  • Former Staff
  • ****
trigger problem SOLVED !
« 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:
« Last Edit: 25 Oct 2009, 11:01:34 by sharkattack »
"HOLY SARDINE" - see Shark-Attack meet his match

Offline XCess

  • Former Staff
  • ****
Re: trigger problem
« Reply #1 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..
« Last Edit: 24 Oct 2009, 13:55:31 by XCess »

Offline Shuko

  • Members
  • *
Re: trigger problem
« Reply #2 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
« Last Edit: 24 Oct 2009, 15:38:06 by Shuko »

Offline sharkattack

  • Former Staff
  • ****
Re: trigger problem
« Reply #3 on: 25 Oct 2009, 11:00:48 »
thanks a million shuko !
         :good:


best wishes
"HOLY SARDINE" - see Shark-Attack meet his match