Check if entity enters world
I am trying to find out when a new entity enters the world.
I thought pfn_spawn would work but it turns out that isn't called in mid map :P Example: Code:
I need something like that, but since pfn_spawn doesn't catch entities spawned in the middle of a map it doesn't work. |
Re: Check if entity enters world
You might be able to hook FM_CreateNamedEntity, but it won't work on entities created by Metamod, I believe.
|
Re: Check if entity enters world
Thanks for the info, it should work.
How do I find arguments out though to use with it? I've always needed to know that. |
Re: Check if entity enters world
Arguments to use with it?
|
Re: Check if entity enters world
I'm not really familiar with FM, don't I have to register a forward to it then use some arguments?
I really don't even know what I'm talking about lol... Can you explain how I would use that please? |
Re: Check if entity enters world
I'm not sure if this works...
*edit* don't work...*edit* I wonder if the EntID is passed too and not only the classname..0o greetz regalis |
Re: Check if entity enters world
Code:
|
Re: Check if entity enters world
Quote:
|
Re: Check if entity enters world
In my opinion Ham_Spawn hook should work for all entities that is created by the mod. And for ones that is spawned by mm/amxx/plugins. Shouldn't work for custom entities that isn't spawned.
|
Re: Check if entity enters world
Quote:
|
| All times are GMT -4. The time now is 10:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.