mia389 10 Posted June 23, 2010 Here is my problem. I have evidence that once you collect it completes a task and gives you a new one. When the player collects it, it is giving only him the new task. Well actually I should say the script is running for him only. How do I make it so it runs for everyone? deletevehicle evi1; "obj1" objStatus "Done"; obj1 setTaskState "SUCCEEDED"; obj1=true; "Camp2" setmarkeralpha 1; "Camp" setmarkeralpha 0; obj2 = player createSimpleTask ["Second Objective"]; obj2 setSimpleTaskDescription ["Find Phillip and bring him home. We hope he is still alive. Enemy in that area is unknown. Good luck <br /><marker name=""Camp2"">Camp2</marker> ", "Second Objective", "Camp2"]; player setCurrentTask obj2; obj2 setTaskState "Assigned"; titleText ["Good work! Map and Task updated", "PLAIN"]; Share this post Link to post Share on other sites
shuko 45 Posted June 23, 2010 Move all that stuff to a new script, call it task2.sqf. Make a trigger condition: evidencecollected onact: nul = [] execvm "task2.sqf" yourAddActionScript.sqf evidencecollected = true; publicvariable "evidencecollected"; What it does is, instead of directly doing all that task stuff, it changes a variable to true and broadcasts it to all players. They receive it and the trigger with the variable as condition will fire, executing script with your task stuff. Share this post Link to post Share on other sites
mia389 10 Posted June 24, 2010 Sweet. Thank you much for the fast reply. Made my day :-) ---------- Post added at 12:19 AM ---------- Previous post was at 12:06 AM ---------- One other question. I have not done the whole JIP thing. If guys join after the task is completed would the next task be assigned for them? Do I need to make the "evidencecollected" trigger set to repeateldy? Guess that was two questions. ---------- Post added at 01:45 AM ---------- Previous post was at 12:19 AM ---------- Edit: I found my anwser. Just waiting for a reply on the last poster because I have the same question. http://forums.bistudio.com/showthread.php?t=100679 Share this post Link to post Share on other sites