Re: Arma 2 Battle Royale Single Player
Posted by benevolentdevil on Jul 15, 2018; 6:40pm
URL: http://kodabar-dayz-daizy-single-player-forum.163.s1.nabble.com/Arma-2-Battle-Royale-Single-Player-tp17681p19679.html
this line here :
_man_type=["O_Soldier_F","O_officer_F","O_Soldier_GL_F","O_Soldier_AR_F","O_Soldier_AT_F"];
thats the "units" that spawn ... these will always be under OPFOR ( east) side, no matter if you use independent units ....
You can change the classnames in this line, to spawn different units. Each one needs a "dead body" somewhere accessible on the map ... as in place the unit in editor ( like in debug area, or small deserted island no one cares about going to ) ... and slide thier health over to nothing.
That leaves em "dead" right after they spawn/load in ... I don't know why those are important to have, but I remember the script didn't work unless I did that too.
There's two ways to "run" the script ... either copy the script code in the init line of each trigger , or run a execute command line to run the script from the same init file.
like say you name the file in the game folder ... "DynamicAiScript.sqf" ...
then you'd put this in the init line of the trigger :
[] execVM "DynamicAiScript.sqf";
There are other ways to run it, but those are the most simplest ways I found.