I created a map for DayZ with an added logical storyLine. A big laboratory where the Zeds originate and entered Chernarus thru teleporting anomalies which are randomly scattered around the landscape. I also scripted companion dogs that you find in some doghouses. The dog follows and protects you, it enters and exits your vehicle when you get in and get out and barks if other humans are within 100/50 meters.
Everything works fine exept because of the scriptcheaters BE is a bit picky. Is there someone with a bit of battleye knowledge that has tips?
To be exact and have an example, I trigger my scripts thru the ini of items in mission.sqf so clients can activate a trigger on the server. For instance the dogs in 3 steps.
1. In the mission.sqf the doghouse item has
init="_nul = [this]execVM ""addin\dogInit.sqf"";";
2. The dogInit.sqf has a serverSide trigger
if (isServer) exitWith
{
private ["_dogHouse","_dogSound","_trg"];
_dogHouse = _this select 0;
_dogSound = createSoundSource ["Sound_Dog", getPosATL _dogHouse, [], 0];
_trg = createTrigger ["emptyDetector", getPosATL _dogHouse];
_trg setTriggerArea [2,2,0, false];
_trg setTriggerTimeout [0,0,0, false];
_trg setTriggerActivation ["any", "present", true];
_trg setTriggerStatements ["isplayer (thisList select 0)",
"nul = [(thisList select 0)] execVM 'addin\dog.sqf',1]",
""];
};
3. Serverside creation of the dog with some scripted inteligence; dog.sqf
Any help is welcome.
Thanks, piXel
Everything works fine exept because of the scriptcheaters BE is a bit picky. Is there someone with a bit of battleye knowledge that has tips?
To be exact and have an example, I trigger my scripts thru the ini of items in mission.sqf so clients can activate a trigger on the server. For instance the dogs in 3 steps.
1. In the mission.sqf the doghouse item has
init="_nul = [this]execVM ""addin\dogInit.sqf"";";
2. The dogInit.sqf has a serverSide trigger
if (isServer) exitWith
{
private ["_dogHouse","_dogSound","_trg"];
_dogHouse = _this select 0;
_dogSound = createSoundSource ["Sound_Dog", getPosATL _dogHouse, [], 0];
_trg = createTrigger ["emptyDetector", getPosATL _dogHouse];
_trg setTriggerArea [2,2,0, false];
_trg setTriggerTimeout [0,0,0, false];
_trg setTriggerActivation ["any", "present", true];
_trg setTriggerStatements ["isplayer (thisList select 0)",
"nul = [(thisList select 0)] execVM 'addin\dog.sqf',1]",
""];
};
3. Serverside creation of the dog with some scripted inteligence; dog.sqf
Any help is welcome.
Thanks, piXel