@DHuxley
unfortunately missed it. Very easy answer. The server needs to keep track of the dogowners:
in your init.sqf in the (isServer) section you have to declare dogOwner = []; correctly. See my file as an example and maybe the next is useful too.
@ Vilemouse and any other
#### To make your added doghouse work (dogspawn): ####
needs in doghouse item in the .sqm initialisation:
init="_nul = [this]execVM ""addin\dogInit.sqf"";";
in the description.ext below class RscPicture {}; add {sounds and graphics):
#include "addin\fx\descrExt.h"
in the init.sqf in section "isServer" (then server knows who has dog):
dogOwner = [];
in the init.sqf in the section "!isDedicated" (dog commands for the player)
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death; _nul = [] execVM "addin\plrInit.sqf";}];
//dayZ original _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
_playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
_nul = [] execVM "addin\plrInit.sqf";
copy folder "addin" in your mission folder (all the scripts)
#### To make your added doghouse work (anomaly): ####
needs in doghouse item .sqm initialisation (for instance the stone anomaly):
init="_nul = [this]execVM ""addin\anomalyStone.sqf"";";
in the description.ext below class RscPicture {}; add {sounds and graphics):
#include "addin\fx\descrExt.h"
copy folder "addin" in your mission folder (all the scripts)
See my files as an example. (And placement=3000; in the .sqm file means placed in a random radius of 3000 meters. Then the game becomes less static. I do this for anomalies)
.
Hello piXel
I had try all your stuff what you have write here on this forum.. i am new here so but its not working for me this dogs script <.<
My Server tell me after that "waiting for host"
So i hope you can help me with that i am sitting here now about days and try to finish it but nothing..