Jump to content
Sign in to follow this  
Trulz

RemoveAction in a multiplayer environment

Recommended Posts

Hey,

I need some help with a little script I wrote.

In that mission you have to find three mass graves to prove war crimes. The script itself works fine but my problem is that it's just executed on the client machine. That means everyone else can find those evidence and the "tskObj2 setTaskState "SUCCEEDED";" is also just executed on the client machine.

I want the script to work "global". I've already tried to solve that with "?(!isServer): exit".

_evi = _this select 0;

_id = _this select 2;

_evi removeAction _id;

MassGrave = MassGrave + 1;

if (MassGrave == 3) then

{

tskObj2 setTaskState "SUCCEEDED";

taskhint ["Mission erfolgreich!\nGute Arbeit!", [1, 0, 0, 1], "taskDone"];

}

Can someone help me with that? How do I execute that script for everyone?

P.S.: I've tried Google and the search function. No solution so far.

Greetings,

Truls

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  

×