kvntvan 13 Posted December 13, 2015 Hello, I've been trying to make a TvT mission where one side is allowed to spawn units off of a laptop object, but I don't want Blufor to be able to use the laptops if they find them. I know theres a condition section for Addaction and I've been trying to use it to restrict the addaction to only the GUER side, but I can't seem to get it working. Would anyone happen to know what I am doing wrong? I have placed this inside the init box of a laptop this addAction["Recruit Infantry", "bon_recruit_units\open_dialog.sqf","",1,true,false,"","if (side player == GUER)"] I've also used other variations and replaced "if (side player == GUER)" to "playerside == GUER" and have used "this" and "_target" in place of player but none of them work. Share this post Link to post Share on other sites
zonekiller 175 Posted December 13, 2015 try this addAction["Recruit Infantry", "bon_recruit_units\open_dialog.sqf","",1,true,false,"","(side player == GUER)"] everything in the last set of " " is already a IF Share this post Link to post Share on other sites
kvntvan 13 Posted December 13, 2015 try this addAction["Recruit Infantry", "bon_recruit_units\open_dialog.sqf","",1,true,false,"","(side player == GUER)"] everything in the last set of " " is already a IF It works! but I had to replace GUER with resistance. Share this post Link to post Share on other sites