Quantcast
Channel: Open DayZ Community
Viewing all articles
Browse latest Browse all 9028

swapObject

$
0
0
I am trying to change the ownership (characterID) of an object. I am using swap object, but it doesn't seem to be removing the old object and adding the new one, nor adding it to the database. Am I doing something wrong? There are no errors in the .rpt file.

This is being run server side.

Code:
_classname = typeOf _x;
_object = createVehicle [_classname, [0,0,0], [], 0, "CAN_COLLIDE"];
_objCharID = _charID;
_dir = getDir _x;
_loc = _x getVariable["OEMPos", (getposATL _x)];
_object setDir...
swapObject

Viewing all articles
Browse latest Browse all 9028

Trending Articles