don't understand where my problem in damage EH i add this:
if (_ammo == "zombie") then {
player setVariable ["udarenZombie", true, true];
diag_log "setVariable udarenZombie true";
};
when zombie attack me i see in log ths message (setVariable udarenZombie true), in server_playerDied i...
i created fix for static weapons (for killing messages), need last thing, message when zombie killing player, i think i need edit player_zimbieAttack or zombie fsm... who have ideas for create this?
i think i know where problem (when player killing me is m2(m2 - weapon (gun) in vehicle m2)) but script try found image in cfgWeapons m2, but me need m2 CfgVehicles image for m2 cfgWeapons
no-no, problem in if
if ((getText (configFile >> "CfgVehicles" >> _vehicle >> "vehicleClass")) in Array...
i now created EH for setIdentity and all works :) this command local and reset bodyName variable
now try create image for static weapons (killing messages)
added StaticWeapon to array in fnc_plyrHit don't work..
i try with wai bots, add to wai static mission 10 parametr (10 parametr in array to call spawn_group)
"test bot"
and in script spawn group
add private _bot_name
this 9 = _bot_name
after create unit
if !isNil _bot_name
_unit setName _bot_name
but name don't changed..
maybe try to setIdentity...
wai now work, but have problem when bot killed in systemchat i see [BOT] e-2-t (not bot name) but if hi kill me i see his name in plant down (cutText), where my problem?
all fixed
new problem how set name bot setName command don't work
now work with dzms and dzmsHotSpots, but don't know how to create in wai, so many scripts and variables giving humanity i think this on_kill in 52-59 line in exitWith block
yes, i now create this EH + cutText, now create for zombies/players/ai (dzai), in wai and dzms use not static variable humanity if you kill bandit humaniti + if kill hero humanity -, need found in where script adding humanity to send my EH
release = complite = create in this message #18
i found fix: need add to player_spawn and init, now all works :)
now i try add [BOT] to name killer if bot kill player
i created [BOT] + name text if me killed bot :)
now try create message when i (player) kill bot/ai/agent/unit, but don't have ideas how release this...
created :)
now try...
70 % my mission in my addons, all work when i inject at client (infistar admin) this
player addMPEventHandler ["MPHit", {_this spawn fnc_plyrHit;}];
but if i try add this in init
if (!isDedicated) then {
[] spawn {
waitUntil {alive player};
player addMPEventHandler ["MPHit"...
but when i inject at client
player addMPEventHandler ["MPHit", {_this spawn fnc_plyrHit;}];
all work wtf?!
when added to init not work, olny inject, run execVM in sqf wait Alive and add EH
if (!isDedicated) then {
player addMPEventHandler ["MPHit", {_this spawn fnc_plyrHit;}];
};
when i try...
PVDZE_plr_Died = [dayz_characterID,0,_body,_playerID,_infected, dayz_playerName];
this array go to server_playerDied, no killer
i think i found problem (in fnc_plyrHit)...
if (!isPlayer _victim || !isPlayer _attacker) exitWith {}; //_attacker is AI and this if is true and script is terminate...
But I still did not understand a single moment, I added all bots variable, but as it is to check if the role of the killer vystupayayu I even if I was killed by a bot
setVariable ["EtoBot",true,true];
but where i need get this var?
Hi, how i can get realese message when agent/bot (ai) kill player? I need and have killerMessage EH, but can i know who killer agent/bot (ai)? Maybe who have complite script?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.