Author Topic: Detecting Corpses (with a raycast)  (Read 754 times)

I need to be able detect the body of a dead player with a raycast. I've tried using $Typemasks::CorpseObjectType and $Typemasks::PlayerObjectType but neither of these seem to detect any corpses. Is there any way to do this?

I'm pretty sure a dead player is just an animation.

I'm pretty sure a dead player is just an animation.

Death is an animation, but the body itself should have a type to be found.

Death is an animation, but the body itself should have a type to be found.
Hrm. Yeah.

I vaguely remember stumbling upon something like that once.

Checking against $TypeMasks::CorpseObjectType should work if you had an ID to the player while they were alive, killed them and checked getType() before the body disappeared.

It may be returned in a box/radius search but I'm not sure, it won't show up from a raycast since it has no collision.