Gudsawn 93 Posted March 15, 2013 I'm using a vehicle rearm script that displays each classname of the ammunition it is reloading. However, instead of displaying the classname would it be possible to get the display name of each object? e.g. instead of "30Rnd_65x39_caseless" it would display "30 Rnd STANAG Mag". Thanks, J Share this post Link to post Share on other sites
SicSemperTyrannis 5 Posted March 15, 2013 This might help: https://github.com/micovery/takistan-life-revolution/blob/master/anarchyinthetk.takistan/4422894.sqf Share this post Link to post Share on other sites
jacmac 2 Posted March 15, 2013 Those routines look good, but where would they typically be placed? I assume that the functions would be called as needed. Share this post Link to post Share on other sites
SicSemperTyrannis 5 Posted March 15, 2013 Place them in an SQF file, let's call it "configFunctions.sqf", in the init.sqf (on client or server, or wherever you're going to use it): call compile preProcessFile "configFunctions.sqf"; then do: "30Rnd_65x39_caseless" call ISSE_Cfg_Magazine_GetName; When you want to access the information. Note: It was written for ARMA2 so there might be problems, but it should be fine. Share this post Link to post Share on other sites
jacmac 2 Posted March 15, 2013 (edited) It works great. Use it like this: _type = typeOf _object; _vehicleName = _type call ISSE_Cfg_Vehicle_GetName; Edited March 15, 2013 by Jacmac Share this post Link to post Share on other sites