Jump to content
SageNTitled

[SOLVED] Alternative to addAction? (workaround for dedicated server)

Recommended Posts

Since addAction doesn't execute on a dedicated server, is there an alternative way to achieve the same effect? All I want to do is walk up to a laptop, activate it, and update a global variable.

Share this post


Link to post
Share on other sites

Why not put the action on the laptop object itself then just have it update the variable using publicVariable? (or if the variable only should exist on server, use publicVariableServer I guess)

Share this post


Link to post
Share on other sites

Yeah, why didn't I.... The following works, thanks. I should probably sleep now, good night...

 

On laptop:

this addAction ["Request transport", {transport = 1; publicVariable "transport";}];

Trigger condition:

transport == 1;

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

×