Jump to content
Sign in to follow this  
MK1

Units inside a trigger vs. units inside vehicle?

Recommended Posts

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

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×