Event Handlers – Arma 3 Talk
Killzone Kid (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) mNo edit summary |
||
Line 26: | Line 26: | ||
::So we should add a note to the documentation? I'm pretty sure a threshold of 0.5 exists, but that obviously needs testing of verification from bistudio to justify an absolute statement. I'd consider any verifiable fact that affects returns to be important to note, even if the fact is imprecise. A note to the effect that "Dammage will not necessarily trigger for < 0.5 damage", would at least save some folk the trouble I had trying to figure out WTF was going on. [[User:Fred Gandt|Fred Gandt]] ([[User talk:Fred Gandt|talk]]) 04:30, 4 March 2014 (CET) | ::So we should add a note to the documentation? I'm pretty sure a threshold of 0.5 exists, but that obviously needs testing of verification from bistudio to justify an absolute statement. I'd consider any verifiable fact that affects returns to be important to note, even if the fact is imprecise. A note to the effect that "Dammage will not necessarily trigger for < 0.5 damage", would at least save some folk the trouble I had trying to figure out WTF was going on. [[User:Fred Gandt|Fred Gandt]] ([[User talk:Fred Gandt|talk]]) 04:30, 4 March 2014 (CET) | ||
-- I wouldn't put any definite numbers if I were you. It needs to be tested not only with units and as far as I remember for vehicles you can get EH triggered for damages < 0.5. I personally think copy paste from "Hit" where it explains sensitivity | -- I wouldn't put any definite numbers if I were you. It needs to be tested not only with units and as far as I remember for vehicles you can get EH triggered for damages < 0.5. I personally think copy paste from "Hit" EH where it explains sensitivity would be sufficient. |
Revision as of 10:54, 4 March 2014
Dammaged
Appears to only trigger if the damage is greater than 0.5
Repro:
- Add to player init
player addEventHandler ["Dammaged", {
hint format ["Damage: %1", _this select 2];
}];
- Set elevation to 5 metres.
- Preview.
- Exit.
- Set elevation to 4.5 meters.
- Preview.
You may need to fiddle with those figures a bit, but it's a quick and dirty method to test.
Observe: Only damage above 0.5 is hinted.
Am I wrong, or should this be noted in the documentation?
Fred Gandt (talk) 06:54, 3 March 2014 (CET)
-- Yes, Dammaged EH is less sensitive than HandleDamage, not sure if there is a defined threshold.
- So we should add a note to the documentation? I'm pretty sure a threshold of 0.5 exists, but that obviously needs testing of verification from bistudio to justify an absolute statement. I'd consider any verifiable fact that affects returns to be important to note, even if the fact is imprecise. A note to the effect that "Dammage will not necessarily trigger for < 0.5 damage", would at least save some folk the trouble I had trying to figure out WTF was going on. Fred Gandt (talk) 04:30, 4 March 2014 (CET)
-- I wouldn't put any definite numbers if I were you. It needs to be tested not only with units and as far as I remember for vehicles you can get EH triggered for damages < 0.5. I personally think copy paste from "Hit" EH where it explains sensitivity would be sufficient.