Jump to content
Sign in to follow this  
gurken2108

Headless Client can't hide Objects Global?

Recommended Posts

Hello everyone,

i tried to hide Objects Global via a headless client without any success, also if i'm already connected.

Here are some code snippet:

    _list = nearestObjects [(call compile SEL(_x, 4)), [_classname], 10];
    {
        _x hideObjectGlobal true;
        _x hideObject true;
    } forEach _list;

If i run the code by my self or via the Server, it works pretty well.

 

I hope someone know my issue and can help me.

Share this post


Link to post
Share on other sites

Fixed:

Must call it via remote on the server

[_delh, true] remoteExec ["hideObjectGlobal", 2];

Share this post


Link to post
Share on other sites

The question is: is it normal to remoteExec a global command?  :D

Share this post


Link to post
Share on other sites

The question is: is it normal to remoteExec a global command?  :D

Well its running once via the server and not on every client, so in this case, yes, its ok :)

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  

×