Hello Cobra. Thank you for this nice coding.
I have a problem that i hope you can help me with. I simply can't get the heli to spawn at the placed marker. I have placed markers (spawnMrk and dropOffMrk), changed the parameters and even replaced the heli with one from my selected faction (yes i have tried with the default). I think i have changed the required lines, but it simply wont spawn the heli after i have thrown a smokegrenade and used the radio.
Here is the things i have changed:
//Parameters
private ["_group","_startPos","_endPos","_height","_captive","_damage"];
_group = [_this, 0, group player, [group player, objNull]] call BIS_fnc_param;
_startPos = [_this, 1, [markerPos "spawnMrk"], [[]]] call BIS_fnc_param;
_endPos = [_this, 2, [markerPos "dropOffMrk"], [[]]] call BIS_fnc_param;
_height = [_this, 3, 50, [0]] call BIS_fnc_param;
_captive = [_this, 4, false, [false]] call BIS_fnc_param;
_damage = [_this, 5, true, [true]] call BIS_fnc_param;
..
//Create the helicopter based on groups side
private "_heliContainer";
switch (side _group) do {
case blufor:
{
_heliContainer = [[_startPos select 0, _startPos select 1, _height], [_startPos, _extractPos] call BIS_fnc_dirTo, "B_mas_mar_Heli_Transport_01_F", blufor] call BIS_fnc_spawnVehicle;
};
//Heli is changed to a USMC version
Im sure i have somehow ruined this, but i hope you can help :)
/Sorner