Jump to content
Sign in to follow this  
kvntvan

Restricting addaction to one side

Recommended Posts

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×