Shadow{}Wolf Posted January 18, 2014 Report Share Posted January 18, 2014 I'm currently using DZAI and the AI Mission System. Does DZAI actually affect the AI spawning by the mission system? My thought would be no because the Mission System calls the add_unit_server files, which define those AI's equipment and effectiveness. Is there a way to bypass that and make the AI use DZAI's parameters? On a related note, how can I add night vision goggles to my Mission System AI, preferably only at a night and non-lootable? Link to comment Share on other sites More sharing options...
Radec59437 Posted January 18, 2014 Report Share Posted January 18, 2014 Depends on which Mission System you're currently using. Most of them use stock AI; EMS is supposed to start using DZAI in the next update, so I'd keep an eye out for that if you want a chance at customization through DZAI. As for the NV goggles, you should be able to add them via the add_unit_server files and remove them with the bodyclean.sqf; for instance, mine have a chance of spawning with an RPG, it gets removed on death with: _ai removeWeapon "RPG7V"; _ai removeMagazines "PG7VR"; Link to comment Share on other sites More sharing options...
Firefly Posted January 18, 2014 Report Share Posted January 18, 2014 No unless it specifically calls DZAI in the config file then it does not use DZAI. To use DAYZAI in your mission you need to change the AI call to: call DZAI_setup_AI for newer versions of DZAI. DZAI will engage most vehicles without the need of launchers if they have powerful weapons, but the latest update does include the option to give unlootable launchers of your choice. So far for us the max engagement is around 700m where they started shooting our heli. Link to comment Share on other sites More sharing options...
Shadow{}Wolf Posted January 18, 2014 Author Report Share Posted January 18, 2014 Where in the script does that call go? Link to comment Share on other sites More sharing options...
Firefly Posted January 18, 2014 Report Share Posted January 18, 2014 Depending on the mission system you are using, for the Chernarus system you can find the AI Spawn code in the SM files under the missions: [_coords,40,4,3,0] execVM "\z\addons\dayz_server\Missions\add_unit_server.sqf";//AI Guards Is replaced by: _spawnPos = []; _spawnPos set [2,0]; //Forces z coordinate (height) to zero Guards = [4,grpNull,_spawnPos,objNull,3] call DZAI_setup_AI; Where _spawnPos is where you want them to go. I use specific coordinates in my mission but you could place them on the loot crates, or deco items such as _uralcrash. 2nd Line: Is to force them to spawn on the ground, probably not needed but is just a safety measure. 3rd Line: IIRC the first number in the guard line is the number of AI to spawn and the lat is their weapon grade value. Link to comment Share on other sites More sharing options...
Picking Posted January 18, 2014 Report Share Posted January 18, 2014 hi can you use? _spawnPos = [_coords]; _spawnPos set [2,0]; //Forces z coordinate (height) to zero Guards = [4,grpNull,_spawnPos,objNull,3] call DZAI_setup_AI; for the coords for the ai spwan? am testing it now and see what happens :) Link to comment Share on other sites More sharing options...