Jump to content

Help with mission.sqf file


Recommended Posts

http://dayzepoch.com/forum/index.php?/topic/12-custom-buildings/page-2#entry1403

 

You need to remove the first 10 Lines of code. And then add this up the top.

if (isServer) then {

Delete the block of code containing your _unit

_unit_1 = objNull;
if (true) then
{
  _this = _group_0 createUnit ["USMC_Soldier_AA", [3791.175, 14130.026, -0.00012207031], [], 0, "CAN_COLLIDE"];
  _unit_1 = _this;
  _this setUnitAbility 0.60000002;
  if (true) then {_group_0 selectLeader _this;};
  if (true) then {selectPlayer _this;};
  if (true) then {setPlayable _this;};
};

Delete the last 3 lines of code.

processInitCommands;
runInitScript;
finishMissionInit;

Finish it off with an extra close at the end..

};
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...