CreateEntityByName
I get this error on my plugin, when I call CreateEntityByName native. How can I check, if the map is running or not?
PHP Code:
|
Re: CreateEntityByName
Simple, dont try create any entity before map load like OnMapStart, OnPluginStart...
Regards. |
Re: CreateEntityByName
You generally create enitities during the round_start event.
|
Re: CreateEntityByName
I use
PHP Code:
|
Re: CreateEntityByName
What exactly do you need to do?
Regards. |
Re: CreateEntityByName
Quote:
|
Re: CreateEntityByName
HookEvent( "round_start", Hook_RoundStartPost, EventHookMode_Post );
That's how I did it and works for me. |
Re: CreateEntityByName
Quote:
sorry i'm not good at this and my english is bad too |
Re: CreateEntityByName
I think this is an exclusive event to L4D series, if you have this problem in another game, probably would use a different event or the other tips provided above.
|
Re: CreateEntityByName
"round_start" event has a problem in CS: S, CS:GO and probably in other Source games. Sometimes it is fired before entities are clean-up, thus all entities created in the post hook may be deleted right away. It is enough to add a timer with 1 frame delay to avoid this problem.
|
All times are GMT -4. The time now is 00:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.