The "spawn" SQF command in Arma 3 is a powerful tool that allows the creation of new script threads. While this functionality is essential, it currently lacks a way for server administrators to retrieve all handles created via this command. This feature request proposes the addition of a getter function to address this gap.
Problem Statement
Server administrators often face challenges in identifying scripts/mods that may be causing performance issues, glitches, or bugs. Without a way to retrieve all handles created via the "spawn" command, it becomes difficult to pinpoint the problematic scripts, which are usually created by third-party mods, leading to prolonged troubleshooting and potential server instability.
Proposed Solution
I propose the addition of a getter function that allows server administrators to retrieve all handles created via the "spawn" SQF command. This function would provide a list of SCRIPT handles that could be used to terminate the scripts, along with relevant information such as the script name, execution status, and any associated variables, etc.
The feature could like:
_allHandles = allSpawnedScriptHandles;
Returns: array of SCRIPT handles spawned via SPAWN command.