Can anyone point out what i'm doing wrong here?

Vampire

OpenDayZ Rockstar!
So I seen PiXel's thread about his anomaly and dog thread, and decided to try to implement it into my server spawning the anomalys by a modified version of the DayzChernarus Mission System to spawn the anomalys randomly on the map every so many minutes and use a teleport script that will randomize between some static coordinates.

The problem I am getting however is an Error Position for the trigger it is trying to create.

Here is the code I am using. After I get it working I plan to remove the text notice and markers.

Code:
private ["_coords","_wait","_anomaly","_trg","_light","_fire","_dust","_static"];
 
[] execVM "\z\addons\dayz_server\Anom\AnomGo.sqf";
WaitUntil {AnomGo == 1};
 
_coords = [getMarkerPos "center",0,5500,2,0,2000,0] call BIS_fnc_findSafePos;
 
[nil,nil,rTitleText,"An anomaly has spawned somewhere on the map!", "PLAIN",10] call RE;
 
_anomaly setPosATL [(_coords select 0),(_coords select 1),(2.5)];
 
Ccoords = _coords;
publicVariable "Ccoords";
[] execVM "Mission\addmarkers.sqf";
 
_trg = createTrigger ["emptyDetector", getPosATL _anomaly];
_trg setTriggerArea [2,2,0, false];
_trg setTriggerTimeout [0,0,0, false];
_trg setTriggerActivation ["any", "present", true];
_trg setTriggerStatements ["isplayer (thisList select 0)",
"nul = [nil, (thisList select 0), rSwitchMove, 'CtsDoktor_Vojak_hulakani1'] call RE;
cutText ['','white out'];
nul = [(thisList select 0)]execVM 'Anom\setHealth.sqf';
nul = [(thisList select 0)]execVM 'Anom\teleport.sqf';
cutText ['','white in', 9];
nul = [nil, (thisList select 0), rSwitchMove, 'ActsPercMrunSlowWrflDf_FlipFlopPara'] call RE",
""];
 
if (isserver) exitwith {};
 
_light = "#lightpoint" createVehicleLocal getPosATL _anomaly;
_light setLightBrightness 0.05;
_light setLightColor[0.5,0.2,0.2];
_light lightAttachObject [_anomaly, [0,0,3]];
_fire = "#particlesource" createVehicleLocal getPosATL _anomaly;
_fire setParticleParams [["\Ca\Data\ParticleEffects\Universal\Universal.p3d", 16, 1, 32],"",
"Billboard",
2,
1,
[0, 0, 2.8],
[0, 0, 0],
160,1.25,1,1,
[1.5],
[[1, 0.4, 0.4, 0.2]],
[1],
0,
0,
"",
"",
_anomaly];
_fire setDropInterval 0.23;
_dust = "#particlesource" createVehicleLocal getPosATL _anomaly;
_dust setParticleParams [["\Ca\Data\ParticleEffects\Universal\universal.p3d", 16, 12, 48], "",
"Billboard",
5,
3,
[0, 0, 0.4],
[0, 0, 0],
1,1.4,1,1,
[9],
[[0.9, 0.9, 0.9 ,0.0],
[0.9, 0.8, 0.5, 0.4],[0.8, 0.8, 0.8, 0.0]],
[0.01],
1,
0,
"",
"",
_anomaly];
_dust setDropInterval 0.1;
_dust setParticleRandom [0, [3, 3, 0], [0, 0, 0], 1, 0, [0, 0, 0, 0.01], 0, 0];
_dust setParticleCircle [0, [0, 0, 0]];
 
_static = createSoundSource ["Sound_Factory09", getPosATL _light, [], 0];
 
waitUntil{isPlayer _x && _x distance _anomaly < 10  };
 
[] execVM "Mission\remmarkers.sqf";
AnomGo = 0;
Ccoords = 0;
publicVariable "Ccoords";
 
[0] execVM "\z\addons\dayz_server\Anom\List\AnomFinder.sqf";

Also, would running the sqf from my server.pbo cause the anomalys to not show visually?

Any input is appreciated.
 
Code:
 8:07:51 Error in expression <xecVM "Mission\addmarkers.sqf";
 
_trg = createTrigger ["emptyDetector", getPosAT>
8:07:51  Error position: <createTrigger ["emptyDetector", getPosAT>
8:07:51  Error 0 elements provided, 3 expected
8:07:51 File z\addons\dayz_server\Anom\List\Spark.sqf, line 16
 
Back
Top