Page MenuHomeFeedback Tracker

"alive (_this select 0)" will return "true" when using MPKilled EH on a non-local unit
New, WishlistPublic

Description

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.

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".

Event Timeline

eraser1 edited Steps To Reproduce. (Show Details)Sep 25 2015, 7:03 AM
eraser1 set Category to Scripting.
eraser1 set Reproducibility to Always.
eraser1 set Severity to None.
eraser1 set Resolution to Open.
eraser1 set Legacy ID to 2060392652.May 8 2016, 12:47 PM