Jump to content
Sign in to follow this  
lawndartleo

Curator question

Recommended Posts

So I used to use this little wad of script to add all object to Zeus...

while {true} do {
    sleep 5;

    if (!isnil "zgm") then {
        zgm_cur addCuratorEditableObjects [allUnits,true];
        zgm_cur addCuratorEditableObjects [vehicles,true];
    };
    
};

I had a player slot with the name "zgm" and when taking that slot, you had access to Zeus.  But I learned that #adminlogged can be used to make Zeus any particular slot that the logged admin is in.  Problem is that this negates the above if statements function since "zgm" is no longer associated with a player slot.  How can I recover the use of this script?

Share this post


Link to post
Share on other sites

Try setting the var name of the Zeus module in the editor to 'zgm_cur'. The addCuratorEditableObjects command needs to point specifically to the module, not the player. This also means that any other user (or logged admin in this case) cannn see the objects added by this command as they use the same module.

Share this post


Link to post
Share on other sites

I think you are correct.... the curator exists.... therefore the script would be true... I'll try that when I get home.

 

Follow up... have not had time to upload it to our dedicated server but in testing this appears to have done the trick.  Kinda feel dumb.  All I needed to do was realize that the needs a true statement to run.... which brings me to my next question.  Is it really even necessary to have that logic in there?

while {true} do {
    sleep 5;

    if (1==1) then {
        zgm_cur addCuratorEditableObjects [allUnits,true];
        zgm_cur addCuratorEditableObjects [vehicles,true];
    };
    
};

Thanks again!

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  

×