CougarFFW04 Posted February 28, 2020 Posted February 28, 2020 Hi everybody What does the DCS getCountry function return exactly and how to use it. The documentation is not very clear to me about these nested enumerator... Thanks
Breaklight Posted February 28, 2020 Posted February 28, 2020 Depends if your from the UK and have the Brexit mod installed... Verstuurd vanaf mijn SM-G930F met Tapatalk
Breaklight Posted February 28, 2020 Posted February 28, 2020 Sry could'nt resist. Seriously, no idea Verstuurd vanaf mijn SM-G930F met Tapatalk
Grimes Posted February 28, 2020 Posted February 28, 2020 It returns a number value that you can then feed into the country.name or country.names table. Or iterate country.id to find it. local countryId = Unit.getByName('Tanya'):getCountry() local contryName = country.name[countryId] env.info(countryName) The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
CougarFFW04 Posted March 2, 2020 Author Posted March 2, 2020 (edited) Hi Grimes, Tnaks a lot. It works. BUT I tried the same with "Category" Tried with Object.Category[categoryId] but can't get it working... Any similar exemple ? Thanks Edited March 2, 2020 by CougarFFW04
Recommended Posts