04-27-2014, 03:24 PM
First, thank you Alwarren for taking the time for testing the mission.
Now the problem is a created trigger for simulated distraction involving a spawned ammunition on a truck and supposedly enemy unit reacting and relocating to the scene of explosion.
Worked just fine when I tested it on editor but of course on dedicated it's a different issue.
Here's what's launched on BLUFOR activated trigger when approaching a task:
And here's the launch.sqf:
Here is the kaboom.sqf:
Of course this one is missing a dedicated check as well as "private [_x]" var list....
The enemy units waypoint condition is tied to the "radon" variable.
I bet someone spots immediatelly what's missing?
Any help appreciated.
The general idea is that the sniper team can only take the required shot from a pier which has a motorized patrol near and it needs to be distracted elsewhere with a radio call.
Now the problem is a created trigger for simulated distraction involving a spawned ammunition on a truck and supposedly enemy unit reacting and relocating to the scene of explosion.
Worked just fine when I tested it on editor but of course on dedicated it's a different issue.
Here's what's launched on BLUFOR activated trigger when approaching a task:
Code:
nul = execVM ""scripts\launch.sqf"";hint parsetext format [""<t size='1.0' color='#FF00FF' align='center'>%1</t> Use the radio to signal Nikos about the distraction"", name player];";
And here's the launch.sqf:
Code:
[] spawn {
    private ["_trg"];
    _trg = createTrigger ["EmptyDetector",getPos player];
    _trg setTriggerArea[5,5,0,true];
    _trg setTriggerActivation["CHARLIE","PRESENT",true];
    _trg setTriggerStatements["this", "nuldf = [] execVM 'scripts\kaboom.sqf';", ""];
    3 setRadioMsg "Ask for a distraction" ;
  };
Here is the kaboom.sqf:
Code:
if (isServer)
then
{
radon = true;
publicVariable "radon";
bomb = "R_80mm_HE" createvehicle getmarkerpos "pom";
};
The enemy units waypoint condition is tied to the "radon" variable.
I bet someone spots immediatelly what's missing?
Any help appreciated.
The general idea is that the sniper team can only take the required shot from a pier which has a motorized patrol near and it needs to be distracted elsewhere with a radio call.