Jump to content
Sign in to follow this  
whisperFFW06

No idea how to do this....

Recommended Posts

Hello,

I'm trying to get the list of all vehicles in a certain area (a hangar), at any moment. No idea how to get it, as the nearestObject command has been totally changed.... I need a little help there, I'm lost sad.gif

Whis'

Share this post


Link to post
Share on other sites

You could put a trigger there, and using thisList retrieve all units that are in the trigger area.

For example, trigger the trigger with a special variable, and in the trigger do "hangarUnits = thisList"

Share this post


Link to post
Share on other sites

Pb is that, I only need vehicles (cars, tanks, trucks, etc...) including empty vehicles.... Do vehicles activate triggers w/ an "triggered by anyone" condition?

Share this post


Link to post
Share on other sites

You can just sort the vehicles out in a script, look at a vehicle respawn script to get ideas.

RED

Share this post


Link to post
Share on other sites

Look into the countType command instead (in the script)

1. Name your trigger (bockaa) for example

In a script you can:

_allUnits = list bockaa;

then you can use countType to sort I believe

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  

×