Jump to content
ThomasSTA

Make In-Game gates restricted to a specific gang/license

Recommended Posts

I would recommend taking a look at the Fed Reserve code. It would most likely be able to copy that code and turn it into a gang check,

  • Like 2

Share this post


Link to post
Share on other sites

@Deadlesszombie@Rowantrek

 

I am working on a kelleys map but I couldn't seem to find anything about that group thing. But I did find the code for the federal reserve. I was checking in-game with infistar that I am assigned to "C Aplha 2-1"

 

this allowDamage false; this enableSimulation false; this addAction[localize"STR_MAR_Open_Vault",life_fnc_safeOpen,"",0,false,false,"",' playerSide isEqualTo civilian && {_target getVariable ["safe_open",false]} ']; this addAction[localize"STR_MAR_Fix_Vault",life_fnc_safeFix,"",0,false,false,"",' playerSide isEqualTo west && {_target getVariable ["safe_open",false]} ' ];

Share this post


Link to post
Share on other sites

the condition of the door open script needs to be this:

(((group player) getVariable ["gang_owner","0"]) == PIDOFOWNER)

 

Edited by Burni Zarzof
  • Like 1

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×