Igneous01 Posted November 6, 2017 Posted November 6, 2017 Is anyone else able to get this working? I've tried this on helicopters, fighters, ground units... all of them return '1'. Developer of Kaukasus Insurgency - a customizable Dynamic PvE Campaign with cloud hosting and stats tracking. (Alpha) http://kaukasusinsurgency.com/
Grimes Posted November 6, 2017 Posted November 6, 2017 Think it might be returning Object.getCategory() instead. Reproduced the bug on a few different versions, so it has been reported. 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
SNAFU Posted March 17, 2021 Posted March 17, 2021 (edited) I still have this bug. Is there a workaround available? Is Group.getCategory() returning if plane/helicopter/ground_unit/ship/strucuture? Edited March 17, 2021 by SNAFU [sIGPIC][/sIGPIC] Unsere Facebook-Seite
Grimes Posted March 18, 2021 Posted March 18, 2021 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. 1 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
Wychmaster Posted November 21, 2021 Posted November 21, 2021 And is still existing... If required I can provide a minimal track file
Grimes Posted November 21, 2021 Posted November 21, 2021 A new track is not needed. 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
Recommended Posts