Jump to content
Sign in to follow this  
fn_Quiksilver

Adding to allCurators array

Recommended Posts

hint str count allCurators // 0
ZEUS_1 = (createGroup west) createUnit ['ModuleCurator_F',[10,10,0],[],0,'NONE'];
hint str count allCurators // 0

Any ideas how to add module to allCurators array, if possible?

Purpose is to assess if there are any curators present, prior to calling the curatorEditableObjects functions.

if ((count allCurators) > 0) then {} else {};

EDIT:

Nevermind, solved.

Solution is:

hint str count allCurators // 0
ZEUS_1 = (createGroup [color="#008000"][b]sideLogic[/b][/color]) createUnit ['ModuleCurator_F',[10,10,0],[],0,'NONE'];
hint str count allCurators // 1

https://community.bistudio.com/wiki/sideLogic

Edited by MDCCLXXVI

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×