getAssignedCuratorUnit – Talk

From Bohemia Interactive Community
Categories:
(Created page with "You can return the players assigned to the curatorlogic by checking for synchronizedObjects on the curator logic Example My_CuratorObjects = []; { systemchat format ["%1 ass...")
 
(Blanked the page)
 
Line 1: Line 1:
You can return the players assigned to the curatorlogic by checking for synchronizedObjects on the curator logic


Example
My_CuratorObjects = [];
{
systemchat format ["%1 assigned to %2", _x, synchronizedObjects _x];
        My_CuratorObjects = My_CuratorObjects + (synchronizedObjects _x);
}foreach allcurators;
then filter for iskindof "Man" to extract units

Latest revision as of 14:30, 8 November 2015