# 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.

- Skill: `ecnu-icalk/arma-3-dynamic-proximity-minefield-scripting` (Agent Skill)
- Install (CLI): `npx skillmds@latest add ecnu-icalk/arma-3-dynamic-proximity-minefield-scripting`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ecnu-icalk/arma-3-dynamic-proximity-minefield-scripting/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ECNU-ICALK (https://skillmd.com/u/ecnu-icalk)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/ecnu-icalk/arma-3-dynamic-proximity-minefield-scripting

---


# 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
1. **Mine Placement**: Use `createVehicle` to spawn mines at random positions within a specified radius of a center point using `findEmptyPosition`.
2. **Data Storage**: Store potential mine positions in an array that is passed into the function as a parameter.
3. **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.
4. **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.
5. **Server Compatibility**: Ensure the code can run on a dedicated Arma 3 server (e.g., use `spawn` for function calls where appropriate).
6. **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

