DarkViper98 12 Report post Posted March 30, 2017 Hi! ExAd Mod. Quad Bike or any other vehicle doesn't spawn! This stopped working after update 1.68 i think! Help me please! Here's spawn script: Spoiler ExAd_DV_DESPAWN_IDLE_TIME = 900; ExAd_XM8_DV_fnc_itemsInCargo = { params ["_container","_itemArray","_item","_amount","_response"]; _item = toLower (_itemArray select 0); _amount = _itemArray select 1; _response = false; { if(_item == toLower _x)then{ _amount = _amount - 1; }; if(_amount <= 0)exitWith{_response = true} }forEach magazines player; _response }; ExAd_XM8_DV_fnc_itemsMissing = { params["_recipe","_recipeStr"]; _recipeStr = ""; { private["_amount","_configName","_displayName","_text"]; _amount = if(count _x > 1)then{_x select 1}else{1}; _text = [_x select 0] call ExAd_XM8_DV_fnc_getDisplayName; _recipeStr = _recipeStr + format["%1x : %2<br />",(if(_amount < 0)then{((-1) * _amount)}else{_amount}), _text]; }forEach _recipe; _response = format["You need <br />%1",_recipeStr]; _response }; ExAd_XM8_DV_fnc_getDisplayName = { params["_class","_configName","_displayName"]; _configName = _class call ExileClient_util_gear_getConfigNameByClassName; _displayName = getText(configFile >> _configName >> _class >> "displayName"); _text = if(count _displayName > 0)then{_displayName}else{_class}; _text }; ExAd_XM8_DV_fnc_canPack = { ( ExileClientInteractionObject getVariable["ExAd_DV_Packable", false] ) }; ExAd_XM8_DV_fnc_pack = { [ExileClientInteractionObject] spawn { params["_obj"]; disableUserInput true; player playActionNow "Medic"; uiSleep 3; ["despawnDeployableVehicle", [netId _obj]] call ExAd_fnc_serverDispatch; uiSleep 1; ["SuccessTitleAndText", ["Quad Bike Packed."]] call ExileClient_gui_toaster_addTemplateToast; disableUserInput false; }; }; ExAd_XM8_DV_fnc_spawnVehicle = { params["_slideClass","_bambiState","_delopyRecipe","_vehicleClass"]; try { _bambiState = if(isNumber(missionConfigFile >> "CfgXM8" >> _slideClass >> "bambiState")) then { if(getNumber(missionConfigFile >> "CfgXM8" >> _slideClass >> "bambiState") > 0)then{true}else{false} } else {true}; if(_bambiState && !ExileClientPlayerIsBambi) then { throw "You can only spawn vehicles as a bambi!"}; _delopyRecipe = getArray(missionConfigFile >> "CfgXM8" >> _slideClass >> "recipe"); if(count _delopyRecipe > 0) then { { if(count _x > 1) then { _amount = if(_x select 1 == -1)then{1}else{_x select 1}; if!([player, [_x select 0, _amount]] call ExAd_XM8_DV_fnc_itemsInCargo) then { throw ([_delopyRecipe] call ExAd_XM8_DV_fnc_itemsMissing); }; } else { if!([player, _x select 0] call ExileClient_util_playerEquipment_contains) then { throw ([_delopyRecipe] call ExAd_XM8_DV_fnc_itemsMissing); } } }forEach _delopyRecipe; { _count = if(count _x > 1)then{(_x select 1)}else{1}; for "_i" from 1 to _count do { [player, _x select 0] call ExileClient_util_playerCargo_remove } }forEach _delopyRecipe; }; _vehicleClass = getText(missionConfigFile >> "CfgXM8" >> _slideClass >> "vehicleClass"); if!(isClass(configFile >> "CfgVehicles" >> _vehicleClass ))then { throw "The vehicle class doesn't exist"}; [_slideClass] spawn { params["_slideClass"]; disableUserInput true; player playActionNow "Medic"; uiSleep 3; ["spawnDeployableVehicle", [netId player, _slideClass]] call ExAd_fnc_serverDispatch; uiSleep 1; ["SuccessTitleAndText", ["Quad Bike Deployed."]] call ExileClient_gui_toaster_addTemplateToast; ExileClientXM8CurrentSlide = "extraApps"; disableUserInput false; }; ["extraApps", 1] call ExileClient_gui_xm8_slide; closeDialog 0; } catch{ [_exception] spawn { UISleep 0.5; ["ErrorTitleAndText", ["Deploy Vehicle", _this select 0]] call ExileClient_gui_toaster_addTemplateToast; ["extraApps", 1] call ExileClient_gui_xm8_slide; }; }; }; Big thanks who can help! Share this post Link to post Share on other sites
0 Razor77 221 Report post Posted March 30, 2017 Did you make any other changes to the server as it still deploys vehicles for us after the update. Cheers 1 Share this post Link to post Share on other sites
0 DarkViper98 12 Report post Posted March 30, 2017 Yes, i did changes. Add some addones, updated infistar. What kind of changes could break this script? Share this post Link to post Share on other sites
0 Razor77 221 Report post Posted March 30, 2017 (edited) Anything in the config you have changed? Trying to think where else might stop it.... Config.cpp in mission pbo Edited March 30, 2017 by Razor77 Share this post Link to post Share on other sites
0 DarkViper98 12 Report post Posted March 30, 2017 yes, was changing smth Share this post Link to post Share on other sites
0 DarkViper98 12 Report post Posted March 31, 2017 so what's the problem, why it doesn't work, will reinstallation help? Share this post Link to post Share on other sites
0 Razor77 221 Report post Posted March 31, 2017 If it worked before you added other other things to the server then you have messed it up when adding them. I have already said this, you need to undo the changes you made or the changes you made. With out pastebins of your files you changed or your rpt nobody can help you, we are not mind readers. Share this post Link to post Share on other sites
0 dima054 59 Report post Posted April 8, 2017 Check rpt. I had the same and it was battleye as i remember. Share this post Link to post Share on other sites
0 bajt3l 0 Report post Posted April 22, 2017 Pastebin rpt. Share this post Link to post Share on other sites
0 leonardos1978 32 Report post Posted October 24, 2018 I have a question about distance, how to make spawn at a distance of 5 meters from the player? Share this post Link to post Share on other sites
Hi! ExAd Mod.
Quad Bike or any other vehicle doesn't spawn!
This stopped working after update 1.68 i think!
Help me please!
Here's spawn script:
Big thanks who can help!
Share this post
Link to post
Share on other sites