Setting damage to destroyed objects

Discussion in 'Script/Addon help' started by Microb, Jul 30, 2017.

  1. Microb

    Microb Member

    Joined:
    Jul 1, 2013
    Messages:
    77
    Likes Received:
    1
    Hi.
    While updating my server to 1.0.6.1 I've run into database saving problem.
    Buildings deployed trough alchemical crafting (or what is it's name now?) are indestructible.
    I solved half of this problem by adding damagehandler to theese buildings in server_monitor, but the game still does not save damage to DB so destroyed buildings respawn on restart...

    any ideas?
     
  2. FallingSheep

    FallingSheep OpenDayZ Lord!

    Joined:
    Mar 17, 2013
    Messages:
    1,955
    Likes Received:
    576
    are there any mods/scripts added to the server?

    if so what and alink if possible
     
  3. Microb

    Microb Member

    Joined:
    Jul 1, 2013
    Messages:
    77
    Likes Received:
    1
  4. FallingSheep

    FallingSheep OpenDayZ Lord!

    Joined:
    Mar 17, 2013
    Messages:
    1,955
    Likes Received:
    576
    a better fix for the damage issue is in the custom_build.sqf (well not better but cleaner keeps the code in its script :p)
    under this section
    Code:
    if(!_cancel) then {
    // Start Build
    _tmpbuilt = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
    
    add this
    Code:
    _tmpbuilt addEventHandler ["HandleDamage", {true}];
    
    also if possible can you paste your
    server_monitor.sqf and your custom_build.sqf so i can checkem out and see if anythings up with em for ya :)
     

Share This Page