Jump to content

Recommended Posts

I am running Altis Life v5.0.0

I am trying to lock multiple doors - e.g. in the Police station building - this building has 15 doors.

I would like only the Police to be able to open and close them.

I have got this working in the init of the building, but it only works on one door - 

BG_3 animate ["Door_2_rot",  0]; if (playerSide == civilian) then {this setVariable ["bis_disabled_Door_2", 1, false];}

 

I am unsure what the format is to add the rest of the doors, I have tried the following with no success - 

BG_3 animate ["Door_2_rot", && "Door_4_rot", 0]; if (playerSide == civilian) then {this setVariable ["bis_disabled_Door_2", &&  "bis_disabled_Door_4", 1, false];}

BG_3 animate ["Door_2_rot" || "Door_4_rot", 0]; if (playerSide == civilian) then {this setVariable ["bis_disabled_Door_2" ||  "bis_disabled_Door_4", 1, false];}

 

Thank you

  • Like 1

Share this post


Link to post
Share on other sites

SOLVED - 

 

BG_3 animate ["Door_2_rot",  0]; if (playerSide == civilian) then {this setVariable ["bis_disabled_Door_2", 1, false];}; 
 
BG_3 animate ["Door_4_rot",  0]; if (playerSide == civilian) then {this setVariable ["bis_disabled_Door_4", 1, false]; 
}

  • Like 3

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

×