Skip to content

Instantly share code, notes, and snippets.

@maca134
Created May 25, 2013 09:36
Show Gist options
  • Save maca134/5648516 to your computer and use it in GitHub Desktop.
Save maca134/5648516 to your computer and use it in GitHub Desktop.
if(!_done) exitWith { diag_log("CUSTOM: failed to get id for : " + str(_uid)); };
//_object_para = "ParachuteMediumWest" createVehicle [0,0,0];
//_object_para setpos [_location select 0, _location select 1,(_location select 2) + 65];
_object = createVehicle [_class, [_location select 0, _location select 1, _location select 2], [], 0, "CAN_COLLIDE"];
_object setVariable ["ObjectID", _oid, true];
_object setVariable ["lastUpdate",time];
_object setVariable ["CharacterID", _characterID, true];
//_object attachTo [_object_para, [0,0,-1.6]];
sleep 1.0;
//WaitUntil{(getpos _object select 2) < 0.1};
//detach _object;
//deleteVehicle _object_para;
_object setDamage _damage;
_object setFuel _fuel;
clearWeaponCargoGlobal _object;
clearMagazineCargoGlobal _object;
_veh setdir _dir;
_veh setpos _location;
//_object setvelocity [0,0,1];
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment