alleycat 28 Posted October 3, 2014 I want to use a condition in addaction: player addaction ["Turn civilian","client\player\turn_civilian.sqf",nil,1,false,true,"","vest player == "V_Press_F""]; Why wont this work? Share this post Link to post Share on other sites
killzone_kid 1333 Posted October 3, 2014 it should show you error, if it doesn't you should enable them. Share this post Link to post Share on other sites
alleycat 28 Posted October 3, 2014 This is the error: > Error Missing ] File C:\Users\cat\Documents\Arma 3\missions\cat_zeus.Altis\initPlayerLocal.sqf, line 47 Error in expression <f",nil,1,false,true,"","vest player == "V_Press_F""]; }; > Error position: <V_Press_F""]; }; Share this post Link to post Share on other sites
Lala14 135 Posted October 3, 2014 you need to double the quotation marks when its inside player addaction ["Turn civilian","client\player\turn_civilian.sqf",nil,1,false,true,"","vest player == [color="#B22222"][b]""[/b][/color]V_Press_F[color="#B22222"][b]""[/b][/color]"]; Share this post Link to post Share on other sites
alleycat 28 Posted October 3, 2014 Thanks that worked Share this post Link to post Share on other sites
iceman77 19 Posted October 3, 2014 player addaction ["Turn civilian","client\player\turn_civilian.sqf",nil,1,false,true,"","vest player == 'V_Press_F'"]; Share this post Link to post Share on other sites