Home   Help Search Login Register  

Author Topic: Checking non-boolean condition for every unit on the map?  (Read 437 times)

0 Members and 1 Guest are viewing this topic.

Offline Fire-Fox

  • Members
  • *
  • Violence is just a friend walking on the right way
Hi everyone! :)
(back again after quite some time in my editing cave ;) )

I have a (for my limited imagination& knowledge) complicated question. I want to set up a trigger (or trigger combination) that checks if a non-boolean condition (-> e.g. not a true-or-false condition) is met by any unit. For example "_x nearestobject [_x,"vehicle"] < 100" or... ah well, you see the point. Where _x is of course the variable for any unit on the map. The list or array for this could be made by a trigger covering the whole map named "anybody" or creating a list like "anybody = thislist".

Anyone understand me ;) and know a solution?


Thx in advance for replies! :)

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Checking non-boolean condition for every unit on the map?
« Reply #1 on: 15 Mar 2004, 18:28:17 »
cant you simply place all the units in one array and then all the variables you want to check in another array, and then check if x is true for each of Y

and for those variables that arent booleans, simply make a boolean out of them

for instance
?(_unit distance _location <100): Iamclose = true
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123