Jump to content

Recommended Posts

Hello, Is there any script that i can put on doors (and vehicles if possible) to only have access if you are on a specific rol? (I dont understand too much of scripting sorry)

I want to use it so that only players that have entered in the rol of pilot (for example) can access to the barracks of pilots and that only him (or other pilots) can access to planes.

Share this post


Link to post
Share on other sites

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

 

put this in the init part of the building and it will lock the doors for civilians (Cops and medics can open them only)

 

Door_1_rot and bis_disabled_Door_1", 1, false

 

Change the above numbers to lock certain doors only. The door number is found if you scroll down on the object you wish to lock.

Youll need to change - (playerSide == civilian) to say something that says they have to have a license to open the door.

  • Like 1

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

×