add events to change structural and hitpoint damage

This commit is contained in:
commy2 2015-03-10 19:55:56 +01:00
parent fa10d1fd6b
commit 8e2f478534
2 changed files with 10 additions and 0 deletions

View File

@ -4,3 +4,9 @@ class Extended_PreInit_EventHandlers {
init = QUOTE(call COMPILE_FILE(XEH_preInit));
};
};
class Extended_PostInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_postInit));
};
};

View File

@ -0,0 +1,4 @@
#include "script_component.hpp"
["setVehicleDamage", {_this call FUNC(setDamage)}] call EFUNC(common,addEventHandler);
["setVehicleHitPointDamage", {_this call FUNC(setHitPointDamage)}] call EFUNC(common,addEventHandler);