Jump to content
Sign in to follow this  
billw

List of spawnable, movable vehicles?

Recommended Posts

I'm referring to the "internal" vehicle names that can be used with createVehicle. I am modifying a script that spawns patrols etc., and need to specify a list of valid vehicles, but obviously cfgVehicles is just a giant list of mostly indecipherable gibberish with soldiers, vehicles, statics etc all mixed in together.

Is there an existing vehicle list for Arma 3 somewhere? If not is there already a script or app that will generate one? If not I know what I am doing this lunch time :) If there is also a script command to save named screenshots then I should be able to auto generate a set of screen shots paired with the internal names, based on a set of heuristics which sounds pretty useful!

Share this post


Link to post
Share on other sites

Maybe I'm not so bright but I can't figure out how to get a list of ONLY movable vehicles out of that. If I click on vehicles it shows everything in cfgVehicles, and if I click on any of the tags like "superclass LandVehicle" I get server error 500.

If I type in LandVehicle as a search filter it filters it down to one entry...

/edit Also you can only sort by name or display name columns. Basically maybe this is useful if you know the name of something and want to see what it looks like, but not if you want to find all of something based on criteria.

Share this post


Link to post
Share on other sites

For a script to make it also future proof, try not to rely on the vehicle names. Instead take the derived classes into account. take a look here: http://community.bistudio.com/wiki/ArmA_2:_CfgVehicles

(Yeah thats the ArmA 2 one but up to now it is the same as used in ArmA 3)

with this you simply ask:

if ((_vehicle isKindOf "LandVehicle") || (_vehicle isKindOf "Air") || (_vehicle isKindOf "Ship")) then {};

and could be sure to get only the "real" vehicles.

greetings Na_Palm

Share this post


Link to post
Share on other sites

Thanks that's very nice, I like future proof!

Share this post


Link to post
Share on other sites

a little change to make it better maintainable would be to use:

_veh_derClass_list = [
				"LandVehicle",
				"Air",
				"Ship"
				];

_inList = false;
{
if (_vehicle isKindOf _x) exitWith {_inList = true;};
}forEach _veh_derClass_list;

if (_inList) then {
>--put your things here--<
};

Edited by Na_Palm
changed then -> exitwith

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  

×