Welcome, Guest Saturday 19th April 2014, 21:36:02
   Home   Help Search Login Register  

OFPEC Forum

Author Topic: trigger problem SOLVED !  (Read 233 times)
0 Members and 1 Guest are viewing this topic.
sharkattack
Former Staff
****
Offline Offline



« on: 24 Oct 2009, 11: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 » Logged

"HOLY SARDINE" - see Shark-Attack meet his match
XCess
Former Staff
****
Offline Offline



« Reply #1 on: 24 Oct 2009, 12:31:11 »

Code:
_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, 12:55:31 by XCess » Logged
Shuko
*
Offline Offline


« Reply #2 on: 24 Oct 2009, 14: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, 14:38:06 by Shuko » Logged
sharkattack
Former Staff
****
Offline Offline



« Reply #3 on: 25 Oct 2009, 11:00:48 »

thanks a million shuko !
         Good


best wishes
Logged

"HOLY SARDINE" - see Shark-Attack meet his match
Pages: [1]   Go Up
  Send this topicPrint  
 
Jump to: