If you apply an MPKilled eventhandler to a non-local unit, or if it is applied to a local unit and then the unit switches locality (via setOwner/setGroupOwner), using "alive (_this select 0)" will return true, despite running inside of the "MPKILLED" event handler.
Description
Description
Details
Details
- Legacy ID
- 2060392652
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
Create/Join dedicated server.
Create AI Unit by the server.
Add MPKilled EH on the created unit with the code: "diag_log (alive (_this select 0));"
Use setGroupOwner on a random client on the AI.
Kill the Unit.
RPT will report "true".