Open and Close gates Automatically when You go through them With this Simple Code!
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