Can get my custom vehicle patrol working...

Cur

Member
...but the default one in the config file works just fine!
Host: DayZ.ST
Map: Chern
V: 1.7.7.1
All debug on.

I know I've gotta be doing something dumb, but I can't figure out what.

What I want: A custom patrol on the road (area) from the western side of Kamenka, to say Kamorovo, or Balota.

I picked this x,y out of the database as I was standing on the western edge of the bridge on the western side of Kamenka.

Code:
// Bandit Car patrol southcoast -
_this = createMarker ["SAR_marker_drewtown_veh", [985, 2110]]; //west end of bridge
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [1000, 100];
_this setMarkerDir 20;
SAR_marker_bandsouth_veh = _this;

I then just modified the given SAR_marker_DEBUG_veh into

[SAR_marker_drewtown_veh,3,["UAZ_Unarmed_TK_EP1","Ural_TK_CIV_EP1"],[[1,1,1],[0,3,7]],true,600] call SAR_AI_land;

Nothing happens :(

Looking into server.rpt I see this:


Code:
23:52:27 "SAR_AI: Static Spawning for vehicle patrols started"
23:52:27 Error in expression < 1;
 
_areadir = (markerDir _area_name) * -1;
 
_cosdir=cos(_areadir);
_sindir=s>
23:52:27  Error position: <* -1;
 
_cosdir=cos(_areadir);
_sindir=s>

Hopefully it's just something dumb... I think this is a super cool feature!
 
use SAR_marker_bandsouth_veh instead as the object name.

so

[SAR_marker_bandsouth_veh,3,["UAZ_Unarmed_TK_EP1","Ural_TK_CIV_EP1"],[[1,1,1],[0,3,7]],true,600] call SAR_AI_land;

should work

Sarge
 
Ugh so I was calling the wrong one... Jeez. :(

_this = createMarker ["SAR_marker_drewtown_veh", [985, 2110]];

and

SAR_marker_bandsouth_veh = _this;

Should I rename one of them so they match?
 
Hey Sarge,
I too have a question about the properties of setMarkerDir. I know it is defined in degrees,but is it set from a north facing aspect? For an example for Cur's first code post in this thread the line:
_this setMarkerDir 20;
would be sending his Bandit Patrol in a SSW direction into the ocean, and not as intended in the general easterly direction? Should it be more like this:
_this setMarkerDir 270;
As always thank for your time and efforts.
STENCH
 
I thought that too, but when I looked in the database I took that "20" based off my character position out of the database who was looking directly down the center of the road through Kamenka.
 
set this, and KRON_UPS_DEBUG to 1, and start the server and check your map - bang, there is the area marked
.-)

_this setMarkeralpha 1;
 
Back
Top