Jump to content

Recommended Posts

Posted

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 ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted (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 by CougarFFW04
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...