Hi all,
Been using this forum for a while but this is the first time posting. I new to the scripting world and have been using the guides and tips on here to learn as i create my own server. I have DZAI installed and work fiine, thats not a problem. The issue i am having is when i try to introduce static AI at a specific location on my Charnarus (epoch) server.
I have looked through this forum and found a few guides which i have followed to a T. With out much luck.... Ive come across a couple of people having the same problem as me but still with no solution.
Going from this guide : http://opendayz.net/threads/how-to-make-static-spawns.19580/ (post2)
I firstly updated the cust_markers_chernarus.sqf file with this:
Next i updated the cust_spawns_chernarus.sqf with this :
I then save and repack my PBO and upload to the server, I dont get any errors but the AI doesnt spawn. Any ideas where im going wrong or what im missing?
Ganjena
Been using this forum for a while but this is the first time posting. I new to the scripting world and have been using the guides and tips on here to learn as i create my own server. I have DZAI installed and work fiine, thats not a problem. The issue i am having is when i try to introduce static AI at a specific location on my Charnarus (epoch) server.
I have looked through this forum and found a few guides which i have followed to a T. With out much luck.... Ive come across a couple of people having the same problem as me but still with no solution.
Going from this guide : http://opendayz.net/threads/how-to-make-static-spawns.19580/ (post2)
I firstly updated the cust_markers_chernarus.sqf file with this:
Code:
/*
Custom Marker Requirements:
Spawn markers: The area covered by the marker will be used as the patrol and spawning area.
1. Marker shape must be Ellipse (Could be rectangular but the function will consider the marker as elliptical regardless)
2. Marker should have identical x and y dimensions. If they are different, the smaller dimension will be used instead.
Blacklist markers: If a player is within this area, they will not be selected as a target for dynamic AI spawns.
1. Marker shape may be Ellipse or Rectangle
2. Marker dimensions should cover the area to be blacklisted.
Example Marker (Note: the marker name must be unique! In this example, it's named "dzaicustomspawntest"):
_this = createMarker ["dzaicustomspawntest", [6650.9883, 9411.541, -6.1035156e-005]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [200, 200];
_this setMarkerAlpha 0;
_dzaicustomspawntest = _this; //_dzaicustomspawntest must be a unique name
Note: This marker is used in the example found in the custom_spawns config files.
*/
//----------------------------Add your custom markers below this line ----------------------------
_this = createMarker ["base", [9801.0322, 13396.67, 0.00011444092]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Empty";
_this setMarkerBrush "Solid";
_this setMarkerSize [350, 350];
_this setMarkerAlpha 0;
Next i updated the cust_spawns_chernarus.sqf with this :
Code:
/*
DZAI Custom Spawn Function
Description: An easy-to-use function for server admins to create AI spawns at specific locations.
Explanation of DZAI_spawn:
[
"dzaicustomspawntest", //This is the marker name to be used as the patrol and spawning area.
2, //This trigger will spawn a group of 2 AI units.
1, //AI spawned by this trigger will have Weapon Grade level 1 (see below for explanation of Weapon Grade)
true //(OPTIONAL) Respawn setting. True: AI spawned will respawn. False: AI will not respawn. See more here: http://opendayz.net/threads/release-dzai-lite-dynamic-ai-package.11116/page-28#post-79148
] call DZAI_spawn;
Weapon Grade explanation:
0: Approx 40% of maximum AI skill potential - weapon from Farm/Residential loot table.
1: Approx 55% of maximum AI skill potential - weapon from Military loot table
2: Approx 70% of maximum AI skill potential - weapon from MilitarySpecial (Barracks) loot table
3: Approx 80% of maximum AI skill potential - weapon from HeliCrash loot table
Note: This trigger will create 2 respawning AI units with weapons from DayZ's military loot table.
*/
//----------------------------Add your custom spawn definitions below this line ----------------------------
[
"base", //This is the marker name to be used as the patrol and spawning area.
4, //This trigger will spawn a group of 4 AI units.
2, //AI spawned by this trigger will have Weapon Grade level 3 (see below for explanation of Weapon Grade)
false //(OPTIONAL) Respawn setting. True: AI spawned will respawn. False: AI will not respawn. See more here: http://opendayz.net/threads/release-dzai-lite-dynamic-ai-package.11116/page-28#post-79148
] call DZAI_spawn;
I then save and repack my PBO and upload to the server, I dont get any errors but the AI doesnt spawn. Any ideas where im going wrong or what im missing?
Ganjena