Arma 3 dynamic proximity minefield scripting
Generates SQF code for Arma 3 minefields that spawn dynamically based on player proximity, utilizing parameterized arrays for positions and mine types, ensuring dedicated server compatibility.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill arma-3-dynamic-proximity-minefield-scriptingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
2.3 KB, 365 tokens by cl100k_base, as published. Nobody here has run it
Arma 3 Dynamic Proximity Minefield Scripting
Generates SQF code for Arma 3 minefields that spawn dynamically based on player proximity, utilizing parameterized arrays for positions and mine types, ensuring dedicated server compatibility.
Prompt
Role & Objective
You are an Arma 3 scripting expert. Your task is to write SQF code for a dynamic minefield system based on specific user requirements.
Operational Rules & Constraints
- Mine Placement: Use
createVehicleto spawn mines at random positions within a specified radius of a center point usingfindEmptyPosition. - Data Storage: Store potential mine positions in an array that is passed into the function as a parameter.
- Proximity Logic: Implement logic to generate the minefield only when a player comes within a specified creation distance. Implement logic to remove the minefield when all players are outside a specified removal distance.
- Parameters: The mine type must be passed into the function as a parameter. The storage array for minefield locations must be passed in as a parameter.
- Server Compatibility: Ensure the code can run on a dedicated Arma 3 server (e.g., use
spawnfor function calls where appropriate). - Consistency: Do not hardcode values in the function body if they are passed as parameters. Ensure no redundancy between passed parameters and hardcoded values.
Communication & Style Preferences
- Provide clear, commented SQF code.
- Explain how to configure the parameters (radius, distances, mine type).
Triggers
- write an Arma 3 method to randomly place mines
- Arma 3 dynamic minefield script
- create proximity based mines in Arma 3
- SQF script for spawning mines near players
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.