Home   Help Search Login Register  

Author Topic: thislist  (Read 1409 times)

0 Members and 1 Guest are viewing this topic.

pazuzu

  • Guest
thislist
« on: 23 Jan 2006, 06:46:39 »
I'm making a mission where 3 vehicles have to be retrieved from enemy area and returned to freindly base...1 tank, 1 AAA armor and 1 UH1 chopper. I'm using a trigger to detect when any player is in the area with the 3 vehicles.

The condition field is like this:

this && (arm1 in thislist) && (arm2 in thislist) && (uh1_1 in thislist) && obj1

arm1 is the tank, arm2 is the AAA and uh1_1 is the chopper

I have the trigger activated by west present.

I've made sure the variable obj1 is declared true.

I've also tried grouping the trigger to player group and set it to any player present.

See anything wrong with this?


Thanks.

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:thislist
« Reply #1 on: 23 Jan 2006, 07:46:44 »
thislist can be strange when you try to access it directly in a boolean.  Try puting this in the activation feild:
Code: [Select]
tanks = thislistThen change your activation feild to this:
Code: [Select]
this && (arm1 in tanks) && (arm2 in tanks) && (uh1_1 in tanks) && obj1Also, keep in mind that thislist will only contain those items that activate the trigger.  So even though you have the trigger set to be activated by anybody present it may be that the empty vehicles are not considered "anybody" since they are empty (I do not know one way or the other as I have not tested thislist and an anybody present trigger with empty vehicles).  But if it is the case then they will not be part of thislist and therefore will not be part of tanks.

Lean Bear

  • Guest
Re:thislist
« Reply #2 on: 23 Jan 2006, 20:14:00 »
Maybe I just don't understand what you're trying to do here, but it seems to me that you're making this way to complicated.

If the vehicles are static (or at least aren't going to go out of a confined area - at least before the player arrives) then all you need to do is make a trigger covering the area surrounding the 3 vehicles and group the trigger with the player - and thus set the activation to the player.

Which really seems to be what you're trying to do here.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:thislist
« Reply #3 on: 23 Jan 2006, 20:42:49 »
Empty vehicles are treated as Civilian and so will not be included in thislist .  They need to have a west soldier inside them for the trigger to include them in thislist for a west present trigger.  Is this the problem?
« Last Edit: 23 Jan 2006, 20:43:51 by THobson »

pazuzu

  • Guest
Re:thislist
« Reply #4 on: 23 Jan 2006, 22:14:59 »
The armor has to be returned to a west base where the trigger is that I'm trying to use thislist.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:thislist
« Reply #5 on: 23 Jan 2006, 22:52:09 »
so arm1 arm2 and uh1_1 all have west units in them?

Bye the way if thislist contains anything then this must also be true so you only need:

(arm1 in thislist) && (arm2 in thislist) && (uh1_1 in thislist) && obj1



pazuzu

  • Guest
Re:thislist
« Reply #6 on: 24 Jan 2006, 22:48:11 »
Your right THobson. All I had to do is set the trigger to civilian present and put this in the condition field:

((arm1 in thislist) and (arm2 in thislist) and (uh1_1 in thislist))

You were right about the empty vehicles showing as civilian and there is no need to have "this" along with the thislist line.

Thanks for the help.