Game Development Community

Why does applyDamage() call onDisabled()?

by Michael Rogers · in Torque Game Engine · 07/15/2005 (1:16 pm) · 0 replies

I'm using the debugger to trace through control/server/players/player.cs at the moment that HumanMaleAvatar::onImpact() is called (which happens when my player hurls himself off a cliff).

From onImpact(), a player's applyDamage() method is called (p. 182 in Finney's book). However, the next line of code I see in the debugger is HumanMaleAvatar::onDisabled() !

How can this be? Why am I not in a method called applyDamage()?

I'll cross-post this in the private groups, since I don't know how many people are reading the 3DGPAIO forum, and I am lost (although getting, just ever so slightly, less lost).

Thanks for clarifying this,

Michael