neodyn 14 Posted November 10, 2015 Hello, is there a way of using the ZEUS with #AdminLogged parameter without placing the module in the Editor? For e.q.: add the zeus module via script ? Share this post Link to post Share on other sites
magnetar 78 Posted December 7, 2015 Do this at PreInit: if (isServer) then { // Create Zeus Module if (isNil "cc_var_centreSideLogic_Zeus") then { cc_var_centreSideLogic_Zeus = createCenter sideLogic; publicVariable "cc_var_centreSideLogic_Zeus"; cc_var_grupSideLogic_Zeus = createGroup cc_var_centreSideLogic_Zeus; publicVariable "cc_var_grupSideLogic_Zeus"; }; cc_var_moduleZeus = cc_var_grupSideLogic_Zeus createUnit ["ModuleCurator_F",[0,0,0] , [], 0, ""]; cc_var_moduleZeus setVariable ["showNotification", false, true]; cc_var_moduleZeus setVariable ["birdType", "", true]; cc_var_moduleZeus setVariable ["Owner", "#adminLogged", true]; cc_var_moduleZeus setVariable ["Addons", 3, true]; cc_var_moduleZeus setVariable ["Forced", 0, true]; publicVariable "cc_var_moduleZeus"; }; 1 Share this post Link to post Share on other sites
neodyn 14 Posted December 23, 2015 Do this at PreInit: if (isServer) then { // Create Zeus Module if (isNil "cc_var_centreSideLogic_Zeus") then { cc_var_centreSideLogic_Zeus = createCenter sideLogic; publicVariable "cc_var_centreSideLogic_Zeus"; cc_var_grupSideLogic_Zeus = createGroup cc_var_centreSideLogic_Zeus; publicVariable "cc_var_grupSideLogic_Zeus"; }; cc_var_moduleZeus = cc_var_grupSideLogic_Zeus createUnit ["ModuleCurator_F",[0,0,0] , [], 0, ""]; cc_var_moduleZeus setVariable ["showNotification", false, true]; cc_var_moduleZeus setVariable ["birdType", "", true]; cc_var_moduleZeus setVariable ["Owner", "#adminLogged", true]; cc_var_moduleZeus setVariable ["Addons", 3, true]; cc_var_moduleZeus setVariable ["Forced", 0, true]; publicVariable "cc_var_moduleZeus"; }; What do exacty mean with preInit ? Does preInit mean call the script in init.sqf ? Share this post Link to post Share on other sites
magnetar 78 Posted December 24, 2015 At preInit means that the function, that has to be declared in description.ext, must contain the "preInit = 1;" attribute as explained in section attributes in https://community.bistudio.com/wiki/Functions_Library_(Arma_3) PreInit functions execute before the objects are initialised. If you do not execute it at PreInit stage (section Initialization Order) it won't work. Share this post Link to post Share on other sites