getAssignedCuratorUnit – Talk

From Bohemia Interactive Community
Revision as of 13:23, 8 November 2015 by Terox (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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