Gaffa 0 Posted August 4, 2009 (edited) Hi, I'm trying to make a Team vs Team objective based mission. One of the objectives west have to steal some documents from the east camp. I have this is the init field for the evidence file... this addaction ["Collect Documents", "collect.sqf"] But both west and east can take the documents.... Any help appreciated :) Edited August 4, 2009 by Gaffa Share this post Link to post Share on other sites
jakerod 254 Posted August 4, 2009 Hi, I'm trying to make a Team vs Team objective based mission. One of the objectives west have to steal some documents from the east camp. I have this is the init field this addaction ["Collect Documents", "collect.sqf"] But both west and east can take the documents.... Any help appreciated :) Maybe put a trigger around the documents that only adds the action if a West person is within 1 or 2 meters of it. It will still have the option for an East person to take it but any west guy who is dumb enough to walk up to it with an east guy right there deserves to have it stolen from him. Share this post Link to post Share on other sites
kylania 568 Posted August 4, 2009 (edited) In your init.sqf: { if ((side _x) == west) then { _x addAction ["Collect Documents","collect.sqf"]; }; } foreach AllUnits; That's how to add an action to everyone on a particular side at least. For your purposes something like this might be better: this addAction ["Collect Documents","collect.sqf",[],1,false,true,"","(side _this) == west"]; Put that in the documents init and the action will only appear for western units. Edited August 4, 2009 by kylania Share this post Link to post Share on other sites
Gaffa 0 Posted August 4, 2009 Cheers guys. :) I will try both and see which one works the best. Share this post Link to post Share on other sites
snkman 351 Posted August 4, 2009 In the script "collect.sqf" you could check the side. if (side (_this select 1) == WEST) then { Code to execute after the side of the unit, which had activated the action is WEST. }; Share this post Link to post Share on other sites
Gaffa 0 Posted August 4, 2009 (edited) Thanks SNKMAN, works a treat! :) Edit, both yours and Kylania's work a treat, but I think I'll use Kylania's as only west get the option to collect the documents. :) Thanks again! Edited August 4, 2009 by Gaffa Share this post Link to post Share on other sites