Welcome back to my series of short scripting tutorials for Arma Reforger. In this tutorial we will be taking a step away from AI for a moment to look at creating a system for random item population in storage containers. Think of it as a mechanism for creating random loot spawns for survival style game modes.
While I was investigating how to accomplish this in Reforger, I happened upon the mechanism that they used for their “Arsenal Supply Boxes” and felt that we could modify the functionality relatively easily for what we want. Additionally, I figured that this was a good teaching moment to cover a couple of Object Oriented Principles as they relate to reforger, namely: Inheritance and overriding existing classes (aka modding classes).
Git Repository: https://github.com/AngusBethke/RS_Scr...
Music: Arma 3 Soundtrack
Timestamps
00:00 - Intro
01:09 - Script file setup
02:14 - Script setup and scaffolding
09:52 - The scripting
19:49 - OOP Principles
22:49 - Implementation of the scripts
29:17 - Ingame Testing
30:02 - Alternate Implementations
32:02 - Conclusion