Making AI bleed when shot

Discussion in 'DZAI' started by Screenracer, Jul 29, 2016.

  1. Screenracer

    Screenracer New Member

    Joined:
    Oct 28, 2014
    Messages:
    8
    Likes Received:
    0
    How can I make the AI bleed when they get shot? I would probably have to edit the "fn_damageHandlerAI2.sqf" because that seems to be where the AI's health is, but I haven't a clue how dayz does bleeding.
     
  2. Screenracer

    Screenracer New Member

    Joined:
    Oct 28, 2014
    Messages:
    8
    Likes Received:
    0
    Okay, so I found out that these lines spawn the bleeding particle effect... I think.

    (fn_damagehandler.sqf)
    if(!_isHit) then {
    //Create Wound
    _unit setVariable["hit_"+_wound,true,true];
    PVDZ_hlt_Bleed = [_unit,_wound,_damage];
    publicVariable "PVDZ_hlt_Bleed"; // draw blood stream on character, on all gameclients
    [_unit,_wound,_hit] spawn fnc_usec_damageBleed; // draw blood stream on character, locally

    Now I only need to figure out how I can reuse this code into the dzai damage handler.
     

Share This Page