MK1 0 Posted September 9, 2007 hi, i'm making a mission where i'd need to compare the number of alive units inside a trigger to the number of units inside a vehicle. the problem is that as soon as the alive units inside the trigger board a vehicle they're no longer "alive". i searched around a bit but couldn't find a solution to this exact problem. it would be easy if the civilians would be in the same group but in this case they're not so i'm using thisList to see who's still alive. the number of civilians ending up in the vehicle varies every time you play the mission. Share this post Link to post Share on other sites
Cloughy 0 Posted September 14, 2007 you mean like, counting the units in a certain trigger compared to units in a vehicle that is away from the trigger? Because once the unit is in a vehicle, he isnt in the trigger, he is in a vehicle that is in the trigger. It would be easier to join civs to 1 group before counting. Cheers GC Share this post Link to post Share on other sites
MK1 0 Posted October 8, 2007 well, it doesn't matter if the vehicle is away from the trigger as long as i could compare these two. the problem with joining units into a group is that they want to follow the group leader which is what i don't want them to do. Share this post Link to post Share on other sites
vipermaul 246 Posted October 8, 2007 I learned how to do this from reading Dr. Eyeball's TeamStatus Dialog code. Oh phone call. Sorry I have to run. Basically you once the trigger supplies the objects to thislist then you can check each unit in thislist and if its a vehicle then there is a command to count the units in the vehicle. Sorry all this on top of my head. Got to run. Share this post Link to post Share on other sites