Jump to content

[REPORTED]Unit:getCategory() always returns 1


Recommended Posts

  • 3 years later...
Posted (edited)

I still have this bug. Is there a workaround available?

 

Is Group.getCategory() returning if plane/helicopter/ground_unit/ship/strucuture?

Edited by SNAFU

[sIGPIC][/sIGPIC]

 

Unsere Facebook-Seite

Posted

Group.getCategory should always work because the group object is its own thing. The problem with the others is that weapons, units, etc extend the object class. So its basically the same function but its supposed to be modified slightly. 

 

A workaround is to check the category value stored in getDesc() for a given object. 

  • Like 1

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

  • 2 months later...
  • 5 months later...
  • Recently Browsing   0 members

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