Jump to content

Sebu

Member
  • Posts

    54
  • Joined

  • Last visited

Posts posted by Sebu

  1. I don't know why but my traders just appear. I've done the whole database part, added the traders to my server_traders and added them in my mission.sqf. Still no luck.

    Here is what I added in the end of my mission.sqf:

    
    _unit_133 = objNull;
    if (true) then
    {
      _this = _group_1 createUnit ["TK_CIV_Takistani05_EP1", [3326.1707, 3917.2815, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
      _unit_133 = _this;
      _this setDir 18;
      _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
      _this setUnitAbility 0.60000002;
      _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
    };
    
    _unit_134 = objNull;
    if (true) then
    {
      _this = _group_1 createUnit ["TK_CIV_Takistani06_EP1", [3330.3152, 3917.7178, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
      _unit_134 = _this;
        _this setDir 18;
      _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
      _this setUnitAbility 0.60000002;
      _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
    };
    
    processInitCommands;
    
    

    Any ideas?

  2. I got to work, I basically just put the folder in and called it through the init.sqf with this:

    if (isServer) then {
    	//Towing
    	[true] execVM "R3F_ARTY_AND_LOG\init.sqf"
    };
    if (!isDedicated) then {
    	//Towing
    	[] execVM "R3F_ARTY_AND_LOG\init.sqf"
    };
    
    Works perfectly for me.

    I also noticed that there was a built in towing script in the fn_selfActions.sqf

    	//Towing with tow truck
    	/*
    	if(_typeOfCursorTarget == "TOW_DZE") then {
    		if (s_player_towing < 0) then {
    			if(!(_cursorTarget getVariable ["DZEinTow", false])) then {
    				s_player_towing = player addAction ["Attach Straps", "\z\addons\dayz_code\actions\tow_AttachStraps.sqf",_cursorTarget, 0, false, true, "",""];				
    			} else {
    				s_player_towing = player addAction ["Detach Straps", "\z\addons\dayz_code\actions\tow_DetachStraps.sqf",_cursorTarget, 0, false, true, "",""];				
    			};
    		};
    	} else {
    		player removeAction s_player_towing;
    		s_player_towing = -1;
    	};
    	*/
    
    
    Try using that one, it's commented out by default I believe.

    Thanks buddy! That init part was causing issues because the execVM used to be on the bottom of everything :)

×
×
  • Create New...