RonnieJ 10 Posted January 11, 2010 (edited) Hey guys... im trying to create a map pretty much from sqf code alone... everything works perfectly local test and when exportet to multiplayer its working to... But now uploaded to the dedicated server and many things just fails! :mad: I hope you can help me with theese issues so we can get to play the damn thing! :p This is the following things that fails: When the map starts I run the following code: init.sqf execVM "scripts\startcratesandvehicle.sqf"; startcratesandvehicle.sqf if (!isServer) exitWith {}; _y = (getMarkerPos "friendly") select 1; _y = _y + 10; _Truck = createVehicle ["UralCivil2", [(getMarkerPos "friendly") select 0,_y,0], [], 0, "NONE"]; _crate = "RUBasicAmmunitionBox" createVehicle (getMarkerPos "friendly"); // Remove the stock items from the crate clearMagazineCargo _crate; clearWeaponCargo _crate; // Add the items to the crate _crate addMagazineCargo ["FlareGreen_M203", 25]; _crate addMagazineCargo ["FlareRed_M203", 25]; _crate addMagazineCargo ["FlareWhite_M203", 25]; _crate addMagazineCargo ["FlareYellow_M203", 25]; (and alot more weapons) Now the crate and vehicle is created but its not being emtpy'd and the new weapons are not filled into the crate?? init.sqf waitUntil {alive player}; _x = (getMarkerPos "friendly") select 0; _y = (getMarkerPos "friendly") select 1; player setPos [_x,_y,0]; I have some problems with getting the AI friendly players to the spot where the controlled players end up... how do I do that? I have the player array: _players = ["s1","s2","s3","s4","s5","s6","s7","s8","s9","s10"]; {_x setPos (getMarkerPos "friendly")} forEach _players; But as I recall the players didnt get tranportet for some reason... not sure if it had something to do with the time the code was run by the server... Hope theres is a helpfull bunch out there :) Best regards. Edited January 11, 2010 by RonnieJ Share this post Link to post Share on other sites
McArcher 0 Posted January 11, 2010 how are you creating a truck? wiki says Object = type createVehicle position ---------- Post added at 01:08 ---------- Previous post was at 01:06 ---------- or , is it undocumented feature? Share this post Link to post Share on other sites
RonnieJ 10 Posted January 11, 2010 _Truck = createVehicle ["UralCivil2", [(getMarkerPos "friendly") select 0,_y,0], [], 0, "NONE"]; Share this post Link to post Share on other sites
McArcher 0 Posted January 11, 2010 _Truck = createVehicle ["UralCivil2", [(getMarkerPos "friendly") select 0,_y,0], [], 0, "NONE"]; yes , I see. By that phrase I meant " is it right way?" Share this post Link to post Share on other sites
RonnieJ 10 Posted January 11, 2010 You can use either way... thats my experience :) Share this post Link to post Share on other sites