Jump to content

Recommended Posts

Posted (edited)

Hi everyone,

 

I am a little bit lost with the static object enum...

 

According to the documentation the for a static objet the getCategory return a enum which is

 

StaticObject.Category = {
"VOID": 0,
"UNIT": 1,  
"WEAPON": 2,  
[b]"STATIC": 3[/b],  
"BASE": 4,  
"SCENERY": 5,  
"CARGO": 6  }

But according the addStaticObjet the data is

 

local staticObj = {     
["heading"] = 0,     
...
[b]["category"] = "Fortifications"[/b],    
["y"] = 621528.57142856,     
["x"] = -294100,     
["dead"] = false, }

And as we see here the category is "Fortifications" which has nothing to do with what would be return by the getCategory on such an object...

 

Which function should I use to get "Fortification" (or plane, helicopter, ship...) and not "STATIC" as the getCategory would return ?

 

Thanks

Edited by CougarFFW04
  • Recently Browsing   0 members

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