Get the classname with FM_CreateEntity
Code:
For some reason this gives a error that the entity doesnt exists. ent doesnt contain 0, looks like a normal entity number to me. Can anyone help me out? Thanks, Ramon |
Re: Get the classname with FM_CreateEntity
I think you're trying to get the classname too early. The ent exists, but it hasn't been assigned a classname yet.
classname is assigned during one of the FM_KeyValue forwards I think. This happens after FM_CreateEntity. |
Re: Get the classname with FM_CreateEntity
k, thx
Any other way of hooking an entity and get the classname? (No not FM_CreateNamedEntity, wont work) |
Re: Get the classname with FM_CreateEntity
I thinks stupok69 had gave the method.
I also use "FM_KeyValue" to hook that & it work. http://forums.alliedmods.net/showthread.php?t=47318 |
Re: Get the classname with FM_CreateEntity
This doesnt occur after the map is loaded, and the ent i want to hook is created by a player not while loading.
|
Re: Get the classname with FM_CreateEntity
The plugin he posted may not be what you're looking for, but FM_KeyValue is still what you should use instead of FM_CreateEntity if you want to grab the classname.
|
| All times are GMT -4. The time now is 20:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.