Hello!
I was looking for a way to handle all player`s COMPLETED actions, so I choose ActionBaseCB and wrote the following code:
modded class ActionBaseCB { override void OnFinish(bool pCanceled) { Print("pCanceled: " + pCanceled); if (GetGame().IsServer() && !pCanceled) { // ... my code ... } super.OnFinish(pCanceled); } }
Next, I choose ActionDigWorms to test it (with HuntingKnife).
Expected results:
- Started dig worms and finished it: pCanceled == true
- Started dig worms and cancelled it in the middle of process: pCanceled == false
- Started dig worms and cancelled it berfore process started: pCanceled == false
Actual results:
- Started dig worms and finished it: pCanceled == false
- Started dig worms and cancelled it in the middle of process: pCanceled == false
- Started dig worms and cancelled it berfore process started: pCanceled == false
Is it bug?
DayZ version: 1.19.155542