Jump to content
  • 0

How to disable actions on doors ?


Neka7350

Question

Hello everyone,

 

I'm working on an Event for my server and I need to remove the actions on certains doors/garage doors(like close/lock/unlock). I tried lots of things but it never worked. Epoch 0.3.0.3 b4 on Altis.

Don't know if someone can help me and give me some advices about that? 

 

Thank you in advance,

 

Neka.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

I tried multiples things but I can't get it working.

 

The door I want to disable is a Cinder Garage Wall (CinderWallGarage_EPOCH)

 

First I tried (in a file that I execute ingame) :

 

{
_x setVariable ['BIS_Disabled_Door_1',1,true];
} forEach [Porte1,Porte9,Porte19,Porte3,Porte2,Porte5,Porte4,Porte11,Porte12,Porte10,Porte13,Porte6,Porte7,Porte8,Porte14,Porte15,Porte16,Porte17,Porte18,Porte20]; //Name of my doors in the mission.sqm
 
Second I went in the editor and put on every door :
 
this setVariable ['BIS_Disabled_Door_1',1,true];
 
Third I placed a trigger and put your code in the init :
 
(nearestBuilding player) setVariable ['BIS_Disabled_Door_1',1,true];
 
I don't know if I made something wrong or if the code can't work on Epoch building ?
 
If someone can help me to get it working, i'll really appreciate it.
 
Thank you in advance.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...