"Private deployables"?

roarnesbo

Member
Hi, does anyone know how to make deployables private, like in DayZ+ ? So that only the player that deployed an object can deconstruct it, and also that the object drops on the ground?
 
Uhm... I know :p

What I meant, was that I want tanktraps and other similar deployables, to only be deconstructed by its owner. We are making our own custom mod btw
 
they use the platyerID and save it to the database. here is a part of the script they use.

Code:
if (_build) then {
    detach _object;
    _object setPos [getPos _object select 0, getPos _object select 1, 0.1];
    _object setDir (getDir _object);
    player reveal _object;
    _object setVariable ["characterID",dayz_characterID,true];
    cutText [format[localize "str_build_01",_text], "PLAIN DOWN"];   
    dayzPublishObj = [dayz_characterID,_object,[getDir _object, getPosATL _object],_classname];
    publicVariable "dayzPublishObj";
} else {
    deleteVehicle _object;
    player addMagazine _item;
};

you can see in the _object setVariable and dayzPublishObj they use

Code:
characterID & dayz_characterID

Now the question is how is it working with the database and what changes do you need to make to get it to work the right way.

but this is a starting point for you.
 
they use the platyerID and save it to the database. here is a part of the script they use.

Code:
if (_build) then {
    detach _object;
    _object setPos [getPos _object select 0, getPos _object select 1, 0.1];
    _object setDir (getDir _object);
    player reveal _object;
    _object setVariable ["characterID",dayz_characterID,true];
    cutText [format[localize "str_build_01",_text], "PLAIN DOWN"]; 
    dayzPublishObj = [dayz_characterID,_object,[getDir _object, getPosATL _object],_classname];
    publicVariable "dayzPublishObj";
} else {
    deleteVehicle _object;
    player addMagazine _item;
};

you can see in the _object setVariable and dayzPublishObj they use

Code:
characterID & dayz_characterID

Now the question is how is it working with the database and what changes do you need to make to get it to work the right way.

but this is a starting point for you.

Thanks, will look into it :) If anyone has more information, please share :D
 
Ok I'm stuck, tried comparing the DayZ+ files with the DayZ files, and there is so much difference because DayZ+ has many different features.

And since I'm new to all this, I would appreciate some input here :p

The only thing I actually want, is that the deployable can only be removed by its owner, and that the item is returned (dropped on ground) when you deconstruct it.

If anyone is willing to take a little time to help me I would be very very happy!
 
Back
Top