Jackal84 Posted February 1 Posted February 1 (edited) Hello everyone. I have made a basic script which tries to simulate the actions of a SOF Demolition Squad. The concept is simple, you bring the Demolition Squad close to the target. The Squad can be a group you placed in the Mission Editor or CTLD troops that you transported to the target's area. Once you get them there, via the respective radio menu you ask the Squad to search for targets nearby. If there is a target in the area, the Squad will automatically move towards it and take positions. After a set period of time, the Squad will inform you that they have planted the explosives and that they are moving to safety distance. When they are away from the target they "detonate the explosives" and destroy the target REQUIREMENTS: The script requires MIST. RESTRICTIONS: Targets supported in this version of the script are STATIC OBJECTS ONLY. HOW TO USE: Configure the script as you wish: local CONFIG = { SEARCH_RADIUS = 500, -- Search radius in meters EXPLOSION_POWER = 50, -- Explosive yield PLANT_DELAY = 30, -- Delay for planting explosives in seconds MOVE_AWAY_DISTANCE = 100, -- Safe distance in meters GROUP_ZONE_RADIUS = 50, -- Operation zone radius STATIC_PREFIX = "Red Target", -- Target identifier prefix SOF_PREFIX = "SOF" -- Demolition group identifier prefix. } Load the script into your mission with a DO SCRIPT FILE file trigger in Mission Start. Get the current script here: https://www.digitalcombatsimulator.com/en/files/3343038/ PS: I am not an experienced programmer, it's just a hobby, so definetely there is room for improvement. All feedback is more than welcome. Edited February 11 by Jackal84 2 1
Recommended Posts