Jump to content
Sign in to follow this  
=101AD=Richard

Gate opening and closing, radio commands

Recommended Posts

Is there any way to make the gates surrounding the main airfield in chernarus automatically open and close when you get within a certain path of it, I can do it for the bar gate but not sure on how to do it with these gates.

Also how would I make a group in game then add them a name and have a separate script only talk to that group. Or if You could have it so the script only spoke to that player and one other player say the group leader and someone within a certain zone.

Share this post


Link to post
Share on other sites

This will open the gate if you are near and close them after.

place a trigger over the gates anybody present repeating and name it trig

in on act

(position player nearestObject 143279) animate ["doorl",1];(position player nearestObject 143278) animate ["doorr",1]

in on dea

(position trig nearestObject 143279) animate ["doorl",0];(position trig  nearestObject 143278) animate ["doorr",0]

It took a while to work out as it's two gates but one opens with the right hand command and the other with the left, and you can't see the other ID number so it looks like one gate.

Edited by F2k Sel

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
Sign in to follow this  

×