Jump to content
Spark23

In dedicated server skiptime not work, what can I do?

Recommended Posts

In dedicated server skiptime not work, what can I do?

 

Laptop Inic. field:

this addAction["<t color='#ff8811'>Advance 12 Hours</t>", "skipTime.sqf"];

 

Skiptime.sqf

skipTime 12;
hint "Time advanced by 12 hours";

 

Thanks!

Share this post


Link to post
Share on other sites

Scripts executed by addAction are only executed locally on the client that activates the action.

skipTime hast to be executed on server. Try it like this:

this addAction["<t color='#ff8811'>Advance 12 Hours</t>", { 12 remoteExec ["skipTime", 2]; "Time advanced by 12 hours" remoteExec ["hint",0]; }];

Share this post


Link to post
Share on other sites

Yeah, it's possible to put it in the init-field.

Share this post


Link to post
Share on other sites

You can put

12 remoteExec ["skipTime", 2]; "Time advanced by 12 hours" remoteExec ["hint",0]

in the skiptime.sqf if you so want. But take your time to read the wiki carefully.

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

×