Chain of events when Taking damage???
what function in which classes are called with which sequence?
Chain of events when Taking damage???
what function in which classes are called with which sequence?
Open the source code for the class you are questioning about, and look for the TakeDamage function. That will tell you.
http://www.ericbla.de http://www.dungeondefenders.com http://en.wikipedia.org/wiki/Warm_Gun http://www.rekoil.com http://www.groundbranch.com
- Please don't send me private messages asking programming questions, those would be better asked on the Programming forum here. Thanks
yes, i have looked, but in UT game sources there are some functions which are called from engine and not from any TakeDamage() function.
I don't believe so.
Projectiles "Process Touch" event calls "TakeDamage" in the touching actors class. There is nothing native about it. Falling and other methods of dying are in the pawns class as well, they all call TakeDamage as well.
hm, thanx, but i am pretty sure that i saw one or even more functions which are called from nowhere. i tried to find where are they called from, but did not found it. thats why i thought they are called from engine.
i need to look one more time again, maybe i just did not found where it was called (but i searched very well)
If UTPawn.uc contains
Super.TakeDamage....
Then you also have to look at Pawn.uc which is probably where your mystery lies.
yeah TakeDamage() is the script function called for everything that takes damage.
It is never called by the engine itself, afaik.
search the source tree./
http://www.ericbla.de http://www.dungeondefenders.com http://en.wikipedia.org/wiki/Warm_Gun http://www.rekoil.com http://www.groundbranch.com
- Please don't send me private messages asking programming questions, those would be better asked on the Programming forum here. Thanks
Bookmarks