Home   Help Search Login Register  

Author Topic: Individual non grouped man trigger?  (Read 1333 times)

0 Members and 1 Guest are viewing this topic.

Offline D007

  • Members
  • *
Individual non grouped man trigger?
« on: 14 Aug 2008, 02:13:21 »
I hope that topic makes sense..lol..
I'm trying to set a trigger to go off when any player is in the trigger.
The players are not grouped though.
So I can't group them to the trigger and say "any group member".

Is there a way to say if any one of the players,
from man1 to man20, enter the trigger area, it goes off?
without grouping them?

thanks a bunch. :)

Offline CrazyAce

  • Members
  • *
Re: Individual non grouped man trigger?
« Reply #1 on: 14 Aug 2008, 02:19:41 »
I wonder if it is possible to synch that trigger to each man individually?

Offline D007

  • Members
  • *
Re: Individual non grouped man trigger?
« Reply #2 on: 14 Aug 2008, 02:26:31 »
well, thats something to try I guess  :scratch:

Oh, also, is there a way to have a trigger go off repeatedly as long as someone is inside it?
I need it to loop it's self and not need a man to leave and re enter the trigger are.

So it goes off when u reach it, then continues to reactivate every 30 seconds, until you leave it?
I keep trying stuff, checking the comref and biki, but I can't find anything on it ><..
thanks again.. :)


Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Individual non grouped man trigger?
« Reply #3 on: 14 Aug 2008, 02:38:03 »
Set the trigger for presence of the corresponding side, in condition put:
Code: [Select]
this && (({isPlayer _x} count thisList) > 0)

Offline D007

  • Members
  • *
Re: Individual non grouped man trigger?
« Reply #4 on: 14 Aug 2008, 03:01:44 »
Excellent. ty Mando.
We'll try it out now. :)

Edit: I should of also mentioned.
The trigger covers an area that has my side already occupying it.
There are blufor Ai's in it at all times..
I need it to only go off if any one of the players enter.
but not if it's only blufor AI in the area..
So maybe then I can just remove the "this" condition and go with the individual player line you put up there..
We'll try that..
« Last Edit: 14 Aug 2008, 03:31:48 by D007 »

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Individual non grouped man trigger?
« Reply #5 on: 14 Aug 2008, 11:22:41 »
Mando's solution allows for your requirement, since it asks for both someone to be in the trigger (this) and that one or more of those people are players.

Logically,
Code: [Select]
this && (({isPlayer _x} count thisList) > 0)

is exactly equivalent to
Code: [Select]
({isPlayer _x} count thisList) > 0

Since, for anything to be in thisList, this must already be true.
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)