Jump to content
Sign in to follow this  
alleycat

Addaction + condition syntax

Recommended Posts

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

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

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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×