SHOOTING AND RELOADING MECHANIC
​​​​​
​
This mechanic is built around a reload sequence and two Switch Containers:
-
One for gunfire sounds
-
One for ejected shell casings
1. Shell Casing Switch Container
-
Contains a single Random Container.
-
Has an initial delay of 0.5 seconds before playing.
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2. Gunfire Switch Container
-
Composed of two Random Containers:
-
One for gunfire sounds
-
One for empty magazine click
-
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3. Game Parameter – Ammo Count
The number of bullets in the magazine is controlled by a Game Parameter.
Two Switch Groups are used:
-
One for the shell casing switch container
-
One for the gunfire switch container
​
Both Switches update dynamically based on the ammo count parameter.
​
Switch Logic:
-
The shell casing switch stops at 9, matching the total bullets in the magazine.
​
​
​
​
​
​​
​
​
​
​
​
​
​
​
​
​
-
The gunfire switch changes to "empty click" after 9 shots, signaling an empty magazine.
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
4. Events & Triggers
​​
​
​
Shooting Event:
-
Plays the gunfire sound
-
Plays the shell casing sound
-
Increments the ammo count parameter by +1
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
Reloading Event:
-
Plays the reload sequence
-
Resets the ammo count parameter
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​









