Want dead NPC's

Total

Member
So I tried to add some npc's on my map from arma 2 editor, but no dice. What I did was put them in and dropped their health so they would die on server start, all is good in the editor but I wasn't able to bring them over to dayz. I've searched all over for the solution and cant find any. Basically I just want a bunch of dead npc's in an area. Any help would be appreciated, im using HFB on chernaurus epoch
 
There's to many characters to post here, but here is one of the bodies;

_unit_74 = objNull;
if (true) then
{
_this = _group_1 createUnit ["GUE_Soldier_MG_DZ", [12899.047, 4459.8413, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
_unit_74 = _this;
_this setDir 225.34312;
_this setVehicleArmor 0.002606859;
_this setVehicleInit "removeAllWeapons this; removeAllItems this";
_this setUnitAbility 0.60000002;
if (false) then {_group_1 selectLeader _this;};
};

All my buildings in this .sqf work, I'm just having trouble with the bodies.
Thanks for the help.
 
I'm not sure how you are killing them afterwards, but all you would need to do is add a setdammage command in what you have so it is killed immediately after spawning.

Code:
_this setUnitAbility 0.60000002;
_this setdamage 1;
 
Well I had set their health to 0 in the editor. Ill give that a shot and see if they show up. Thanks again.
 
So I just fixed it, what I had to do was add this code to the top of the .sqf

Code:
_this = createCenter west;
_center_1 = _this;

_group_1 = createGroup _center_1;

that got them in fine, thanks for the help though.
 
Back
Top