Open and Close gates Automatically when You go through them With this Simple Code!

Subscribers:
2,950
Published on ● Video Link: https://www.youtube.com/watch?v=5l68yAiPaJ8



Duration: 0:00
260 views
30


This video will show you a code you can use to setup gates that
will automatically open for you when you go through them, and
then close behind you after passing through.
This can be used on any type of gate that can be opened manually
by the player.

Codes for gates:
If a gate opens up and down use:
gatename animate ["Door_1_rot", 1];
gatename animate ["Door_1_rot", 0];

If a gate opens from left to right use:
gatename animate ["Door_1_mov", 1];
gatename animate ["Door_1_mov", 0];

Timestamps
0:00 Introduction
3:10 Rising lowering gate
4:45 Gate code
6:42 Sliding gate
6:55 Sliding gate code
8:00 Fence door
8:25 Fence door code
8:33 Using different gates
9:00 Test gate type
9:56 test
10:25 Code review

Music used in the video:
--------------------------------------
- Dorian by Andrew Langdon

Codes & Scripts Playlist
   • Arma 3 Codes & Scripts  

Arma 3 Tutorials Playlist
   • Arma 3 Tutorials  

Arma 3 Code Snippets Playlist
   • Arma 3 Code Snippets  




Other Videos By Gunter Severloh


2024-11-17With these Codes you can setup Various Types of Devastating Explosions in Your Scenarios!
2024-11-10This Guide will show you How to Install and Play different Types of Steam Workshop Mods!
2024-11-03Use this Camera Script to follow your Bullet, Bomb, or Missile to its Target!
2024-10-27Use these Codes in Your Scenarios to get AI to Join Your group!
2024-10-20Obliterate Your enemies using a Proximity Drone with this Script! / Drone Grenadier UPDATE!
2024-10-13With this Script You can have a Helicopter Paradrop infantry when the Player enters an Area!
2024-10-06Drop Grenades on Your Enemies from Deployable and Existing Drones with this Script!
2024-09-29Spawn Custom Infantry & Vehicles in Waves with Defined Marker paths using this Script!
2024-09-223 Ways You can keep Playing after getting Killed in Singleplayer!
2024-09-15Create animated Checkpoints in Your Scenarios with this Script!
2024-09-08Open and Close gates Automatically when You go through them With this Simple Code!
2024-09-05Give Soldiers in Your Scenarios Gun Lights with this Code!
2024-09-01Use this Code to Create Hostages You can Rescue! & Give Soldiers Gun Lights with this Code!
2024-08-25Spawn Custom Enemies around the Player that will also Hunt him, using this Code!
2024-08-18Four ways You can Earn Rewards in Your Scenarios for Completing Tasks!
2024-08-11AI Medics in Your Squad will Automatically Heal You and Your Squad with this Code!
2024-08-04Use this Module to Spawn/Despawn Waves of Enemies, or Dynamic Patrols in Your Scenario!
2024-07-28Respawn in Singleplayer with this Code!
2024-07-21Subtract Tickets when You Respawn in Your Scenario!
2024-07-14Spawn Enemy that will Hunt You in Waves using the Herne Hunter AI Script!
2024-07-07Fortify your Position with this Trench Digging Script!