Server side elements of 'dayzPublishObj'

shinkicker

Administrator
Staff member
So I am working on a new loot Item which is similar to the Tent / Sandbag (its the camo net) and for the nets to persist it looks like they need to be written to the hive.

I can see the following call is made (using the build.sqf as an example):


dayzPublishObj = [dayz_characterID,_object,[_dir,_location],_classname];
publicVariable "dayzPublishObj";
if (isServer) then {
dayzPublishObj call server_publishObj;
};

If I was to try and publish a new object what would be required server side to correctly parse it to the objects tables and (I persume) run a createvehicle?

Also where would I get the dayz_characterID from?

Can anyone shed any light?
 
dayz_characterID is characterID in DB (owner of pushed object)
you can easy push any object, but you need change server_publishObject.sqf to allow it.
 
for example in blisshive, you have to add the name of the class of your object in the deployable table.

like CamoNet_DZ.

Worked on my side.
 
Back
Top