Page MenuHomeFeedback Tracker

Handledamage doesn't work on players
Closed, ResolvedPublic


No matter how much you decrease your damage by Handledamage, you always die the same - Decreasing taken damage from weapons doesn't work on players.
However It does work on AI.

It's some script that ignores Handledamage on players/playables.
Maybe It has something to do with Difficulty option "Extended Armor". It probably sets it's own damage decrease, so It's not string value that can be changed.


Legacy ID
Steps To Reproduce
  1. Place soldier controllable by you. Into your init line write:

this addEventHandler ["HandleDamage",{if (_this select 1=="") then {damage (_this select 0)+((_this select 2)/10000)}}];

  1. Place enemy soldier(s) in front of you and play mission
  2. Watch how even, when damage is decreased by 10000x, you still get killed on few hits.
  3. Then set yourself as one of the enemy soldiers and make that soldier you had controlled before to be controlled by AI. You will see that It works pretty well on him. However if you would switch to him by "playable" feature, and then switched back to your guy, his invulnerability will be gone.

Event Timeline

Snipedhunter edited Additional Information. (Show Details)
Snipedhunter set Category to Scripting.
Snipedhunter set Reproducibility to Always.
Snipedhunter set Severity to None.
Snipedhunter set Resolution to Suspended.
Snipedhunter set Legacy ID to 372752829.May 7 2016, 1:59 PM

Caused by #6644 by any chance?

Yeah I think that this could be the problem.

Please confirm by adding a 0.1s sleep prior to assigning your handleDamage.

MadDogX added a subscriber: MadDogX.May 7 2016, 1:59 PM

Closing due to lack of information / no response in a long time. Most likely a dupe of #6644.

If this issue is still reproducable for you, please create a new ticket and make sure to include all necessary info / files.