Search the Community
Showing results for tags 'gate'.
Found 4 results
-
Hi guys, Ive been trying to get a few bar gates to open automatically when a vehicle enters a trigger area. I am trying to get the trigger to fire when ANY vehicle (land vehicle) is inside the area. I know I can do this by naming each vehicle but I would rather have a general solution that works for any vehicle that is occupied by a side AI and or Players alike. I have tried typeof and Iskindof but I think my syntax is wrong in each case. Thanks!
-
I haven't tested this in an MP setting, I would very surprised if it works as we all know Arma shows no love for anything that "moves" lol Posting this for others, use however you see fit! Also, I'm sure some pro's on here are gonna probably cringe at my script lol Any suggestions to make it better are highly welcomed, I always looking to learn! on the laptop: make a gateControls folder and add the open.sqf: Next, the close.sqf: The sound effect was custom, but I'll include the .pbo Any questions, Discord is the easiest way to get a hold of me https://discord.gg/jbwTKWx https://www.dropbox.com/s/9n6xuhztqggkaty/concept_roadGate.VR.zip?dl=0 for the full pbo
-
Hello all, First time poster here, I have been scouring and i mean SCOURING for a solution to a problem I have. Im trying to place an infostand with an "addaction" in the init that would open a bar gate for vehicles to pass through, however adding "Gate_DOC_121 animate ["Door_1_Move", 1]" within the correct parameters is not working whatsoever this is what I am trying. addAction ["Open Gate One (Perimeter)", "Gate_DOC_121 animate ["Door_1_Move", 1]"] I am pretty new to Arma coding itself and im sure it has to do with the "[" anyway to mitigate this?
-
Hey guys, a bit of a puzzle here. I'm trying to create a trigger that opens a one way gate. Tigger has following conditions: Player present inside trigger. No OpFor within trigger. Gate is alive. Gatekeeper is alive. Players vehicle is facing correct direction. I managed to get everything except the direction so far with this: Activated by player present - this and (alive gatekeeper) and (alive gate02) and (east countside thislist) == 0 However i'm having hard time implementing getdir in to the condition. I managed to get getdir working like this: if (direction (vehicle player) >200) then {hint "Going out"} if (direction (vehicle player) <200) then {hint "Going in"} But how would i make this into a trigger condition? Somehow with _x thislist i would assume..? It's for multiplayer so i can't use command "player" in the trigger. How do you refer to the unit that is inside the tigger instead of "player"?