sys_get_component_name_count |
is it there or not? mabe there is similar command....
Re: sys_get_component_name_count
You can use Get_Design_Specific_Component_Count( "component name" )in VehicleSizes.txt.
Re: sys_get_component_name_count
It doesn't work in the component enhancements file, that's true. Perhaps you could make more efficient use of the AI tags? Remember you can mix the AI tag requirement with the Get_Component_Weapon_Type requirement, so you can use the same AI tags for both missile and direct fire weapons, for instance. It might even be possible to check if the component is not a weapon by using the Weapon_Type function, in which case you'd have a total of 100 Ai tags to use; 20 for each of the 4 different weapon types, and 20 more for non-weapon components.
If it's possible to assign a weapon type to non-weapons then you'd be able to use more of the total for non-weapon components. Haven't tried that out yet.
Re: sys_get_component_name_count
this would be very handy for system wide effect where things are added onto each other. Is there anything simular for facilities? if not that should be added aswell 




Re: sys_get_component_name_count
No, that would be something for a feature request.
For now you can add the AI_Tag_X ability to the component you want to count and use the ability the VehicleSizes.txt file uses to determine engine counts, except specify AI_Tag_X instead.
-----
Watch for my mod - codename: Dimensions - coming by Summer, 2007!