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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...