whisperFFW06 0 Posted September 3, 2002 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 Whis' Share this post Link to post Share on other sites
kegetys 2 Posted September 3, 2002 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
whisperFFW06 0 Posted September 3, 2002 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
RED 0 Posted September 3, 2002 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
whisperFFW06 0 Posted September 3, 2002 Hmmm... This means I gotta name each vehicle on the map. Gotta try this. Thanks. Whis' Share this post Link to post Share on other sites
bn880 5 Posted September 3, 2002 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
whisperFFW06 0 Posted September 3, 2002 Thanks! I'll try that when I come back home... Whis' Share this post Link to post Share on other sites