Monster dies?
Trying to catch when a monster dies in monstermod whit hamsandwich.
But this dont work? no errors or messages appears. Code:
#include <hamsandwich> |
Re: Monster dies?
Well Monster_TakeDamage() is missing a parameter, the "inflictor" argument.
Shouldn't affect you, but try putting 0 instead of idattacker to be sure you can see any message appearing. I assume monsters *are* a func_wall ? You might aswell take out all the checks anyway, and dump all the input. Something like: Code:
|
Re: Monster dies?
i run some cheeks and look fro monstermods source code and found out it was func_wall and why i did the cheek was becase thare are others func_wall one the map-.-
and i dont think i am missing a argument becase idattacker stands whare your idinflictor just difrent names-.- |
Re: Monster dies?
There's both inflictor and attacker ;-)
And it seems like classname is actually meaningful in MonsterMod, and not just func_wall ... though that was only a very quick look. |
Re: Monster dies?
Aha, I have an idea!
It might be an idea of purest fail, but it might work. What you might want to do, is get a monster's entity ID and use RegisterHamFromEntity on it. |
| All times are GMT -4. The time now is 11:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.