Arma 3
MCC Sandbox 4 - Mission Making The Easy Way
COCKHEAVEN 8 Apr, 2020 @ 2:41pm
Addaction - Create IED
Is there a way to make an object an IED/Bomb Via Script? I was thinking a function with some parameters passed to it? [_Time,_Size,_Isdeadly,_Mode] execVM "MCC_fn_CreateIED.sqf"? Obviously i made that up but something similar?
My application is to have players be able to spawn an IED/MCC Bomb and practice defusing Via an addaction.
< >
Showing 1-1 of 1 comments
shay_gman  [developer] 15 Apr, 2020 @ 5:02am 
Yes, there is usually a documentation to MCC functions you can use to figure it out. Use the function viewer.

Here is for this:
Create an IED mechnic (should run on server only).
Example:

[_this,_trapvolume,_IEDExplosionType,_IEDDisarmTime,_IEDJammable,_IEDTriggerType,_trapdistance,_iedside] spawn MCC_fnc_createIED

Params:
_this: OBJECT - the object that serve as the visual IED
_trapvolume: STRING - explosion radius - "small","medium","large"
_IEDExplosionType: INTEGER - explosion type:
0-deadly
1 - disabling (will cripple vehicles and soldiers but will not kill) 2 - Fake, will not or lightly wound soldiers.
_IEDDisarmTime INTEGER - Time in second it will take to disarm the IED
_IEDJammable BOOLEAN - true - if jammer vheicle (defined in MCC_IEDJammerVehicles) can jame this IED false if not
_IEDTriggerType INTEGER - 0- Proximity, will explode if unit from the targer side will move faster then a slow crouch,
1- radio will explode if unit from the targer side will get close to it, if assigned to spotter the spotter must be alive,
2- manual detontion, only mission maker
_trapdistance INTEGER - Distance were target unit have to get close to the IED to set it off
_iedside ARRAY - Array contains all the sides that will activate the IED [west, east, resistance, civilian]


< >
Showing 1-1 of 1 comments
Per page: 1530 50