Jump to content

Recommended Posts

Is there any way i can script anything into Arma that will only enable cops to open certain doors. I would like to make a secret room for the lols but with a twist. Sorry to be a pain XD.

Finally thank you in advance :)

Share this post


Link to post
Share on other sites

See this post for how to lock doors.

 

 

You can then script logic so that only cops (checking your list of units desginated as cops, or units that have a "isCop"=True variable set for it).

// Lock first door.  Change bis_disabled_Door_1 to bis_disabled_Door_2 to lock 2nd door, etc.
copHouse setVariable ['bis_disabled_Door_1',1,true]

Share this post


Link to post
Share on other sites

 

See this post for how to lock doors.

 

 

You can then script logic so that only cops (checking your list of units desginated as cops, or units that have a "isCop"=True variable set for it).

// Lock first door.  Change bis_disabled_Door_1 to bis_disabled_Door_2 to lock 2nd door, etc.
copHouse setVariable ['bis_disabled_Door_1',1,true]

Okay cheers. Do you have any idea on where to put this piece of code?

Share this post


Link to post
Share on other sites
Guest

Basicly initServer.sqf

(But there are many other places depending on the framework you work with.)

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

×