meanbeandk Posted August 19, 2014 Report Share Posted August 19, 2014 Hi i am trying to get this to save to the database _crate = "FlagCarrierCDF_EP1" createVehicle (position player); _crate setVariable ["Mission",1,true]; _crate attachto [player, [0,3,3.5]]; sleep 10; detach _crate; player reveal _crate; hope some one kan help me Link to comment Share on other sites More sharing options...
0 Shadow Hawk Posted August 21, 2014 Report Share Posted August 21, 2014 just spawn it in then look at it and press insert then ok. done. Link to comment Share on other sites More sharing options...
0 meanbeandk Posted August 22, 2014 Author Report Share Posted August 22, 2014 Lol Link to comment Share on other sites More sharing options...
0 raymix Posted August 22, 2014 Report Share Posted August 22, 2014 just spawn it in then look at it and press insert then ok. done. That's only if you have infistar AH tools... Hi i am trying to get this to save to the database _crate = "FlagCarrierCDF_EP1" createVehicle (position player); _crate setVariable ["Mission",1,true]; _crate attachto [player, [0,3,3.5]]; sleep 10; detach _crate; player reveal _crate; hope some one kan help me You need to create nested array and send public var: https://github.com/vbawol/DayZ-Epoch/blob/master/SQF/dayz_server/compile/server_publishObject.sqf PVDZE_obj_Publish = [_charID,_object,[_direction,_location],_classname]; //create array publicVariableServer "PVDZE_obj_Publish"; //ask server to save it to database So, something like this: private ["_classname","_crate","_pos","_crateDir","_crateLoc"]; //needed to avoid corrupted vars _classname = "FlagCarrierCDF_EP1"; _pos = [player] call FNC_GetPos; //will work on water, too _crate = _classname createVehicle [(_pos select 0),(_pos select 2) + 2,(_pos select 2)]; //create 2 meters in front of player _crate setVariable ["Mission",1,true]; player reveal _crate; //make it available sooner (gear menu etc) _crateDir = getDir _crate; //grab the new dir and loc for DB _crateLoc = [_crate] call FNC_GetPos; sleep 1; //give it a second (or more) for slower machines/network PVDZE_obj_Publish = [0,_crate,[_crateDir,_crateLoc],_classname]; //compose an array of gathered info publicVariableServer "PVDZE_obj_Publish"; //ask server to save it to database Link to comment Share on other sites More sharing options...
0 meanbeandk Posted August 23, 2014 Author Report Share Posted August 23, 2014 This is perfect !! Thanks :D try it right away :) Link to comment Share on other sites More sharing options...
0 meanbeandk Posted August 24, 2014 Author Report Share Posted August 24, 2014 i have played a little whit your script. Put nothing spawns ? Link to comment Share on other sites More sharing options...
Question
meanbeandk
Hi i am trying to get this to save to the database
hope some one kan help me
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now