mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
simplify blood splatter by using woundReceived event
This commit is contained in:
parent
6082020056
commit
bad01c3126
@ -1,5 +1,5 @@
|
||||
|
||||
PREP(hit);
|
||||
PREP(handleWoundReceived);
|
||||
PREP(isBleeding);
|
||||
PREP(onBleeding);
|
||||
PREP(createBlood);
|
||||
|
@ -36,5 +36,5 @@ if (isServer) then {
|
||||
private _stateMachine = [_listcode, true] call CBA_statemachine_fnc_create;
|
||||
[_stateMachine, {call FUNC(onBleeding)}, {}, {}, "Bleeding"] call CBA_statemachine_fnc_addState;
|
||||
|
||||
[QEGVAR(medical_engine,woundReceived), FUNC(woundReceived)] call CBA_fnc_addEventHandler;
|
||||
[QEGVAR(medical_engine,woundReceived), FUNC(handleWoundReceived)] call CBA_fnc_addEventHandler;
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
Loading…
Reference in New Issue
Block a user