Jump to content

Recommended Posts

Posted (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. 

408227448-ae2249f3-b575-4313-967c-42eaf2

 

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.

408227874-c18b7356-ab71-46b5-bbbd-4194db

 

When they are away from the target they "detonate the explosives" and destroy the target

408228031-d68b53d2-55b3-4f63-a1f4-0fc5d5

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 by Jackal84
  • Like 2
  • Thanks 1
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...