Arma 3 - EventHandlers Example - Ammo Box Trap
Mission download:
http://www.mediafire.com/file/tihfbgvic4wcxd4/EHexample.Stratis.zip
EventHandlers video: https://www.youtube.com/watch?v=RWHh9z6cCwo
This example shows yet another potential use for EventHandlers, this time with many other commands, mimicking an actual mission more than EH-only examples.
The mission mostly revolves around sending the variables from one script to another, and making them accessible at the right moment, while keeping the entire functionality encapsulated, so that other mission features can be added without breaking each other. The mission consists of
- init.sqf for initial randomized bomb distribution
- 3 custom scripts for arming / disarming the bomb, and opening the ammo box
- description.ext + 2 sound effects simulating the bomb
- a small base with a couple ammo boxes to demonstrate the functionality of the scripts
- some text explaining what exactly the code does, and why
Originally I wanted to make a video explaining all the code, but I concluded it would be boring and pointless, since the idea is clear and simple, but the code is a tangled up mess, and I'd get stuck in my own explanation more than you simply reading a few lines of sqf.
Even if you decide not to spend an evening deciphering the scripts, the mission is working well, and you can use the whole thing in your mission, if you wish.
Other Videos By Feuerex
Other Statistics
ARMA 3 Statistics For Feuerex
Feuerex currently has 742,725 views spread across 126 videos for ARMA 3. His channel published over 1 day worth of content for the game, roughly 91.19% of ARMA 3 content that Feuerex has uploaded to YouTube.