Puddlemonkey Posted July 18, 2013 Share Posted July 18, 2013 Hi all, The wiki says this about Group.getSize() number function Group.getSize(Group self)returns initial size of the group. If some of the units will be destroyed, initial size of the group will not be changed. Initial size limits the unitNumber parameter for Group.getUnit() function. However, if I destroy a unit in a group using the triggered action of Explode Unit, the number returned by this function decreses. It appears to show the current size, not the initial size as stated so elaborately in the wiki :cry: Link to comment Share on other sites More sharing options...
Grimes Posted July 19, 2013 Share Posted July 19, 2013 Yep its a bug. 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 Link to comment Share on other sites More sharing options...
galevsky06 Posted July 19, 2013 Share Posted July 19, 2013 (edited) Looks better with the bug :D .getSize() returns current size as any getter, initial size would be called .getInitialSize() in a good API. As for your matter, call some function that stores initial sizes into global table in the early beginning of the mission. Edited July 19, 2013 by galevsky06 Link to comment Share on other sites More sharing options...
Puddlemonkey Posted July 19, 2013 Author Share Posted July 19, 2013 I think it is probably better reporting the current size, as it does. We could just do with someone of the 'administrators or bureaucrats' to update the wiki :-) Link to comment Share on other sites More sharing options...
Grimes Posted July 19, 2013 Share Posted July 19, 2013 I retract my earlier statement that its a bug, it looks like it is working as intended. I've put in a request for Group.getInitialSize() to be added so we still have that functionality built in. I'll also fix the wiki page. Edit... who changed the rules for editing the wiki!? 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 Link to comment Share on other sites More sharing options...
Puddlemonkey Posted July 19, 2013 Author Share Posted July 19, 2013 Thanks. A getInitialSize would be grand. Link to comment Share on other sites More sharing options...
Recommended Posts