[L4D] How do I get an Special Infected created by "commentary_zombie_spawner"?
Hello, everypony, I have a "commentary_zombie_spawner" entity that spawns a random special infected (smoker, boomer, tank, hunter).
PHP Code:
It spawns a random special infected. I would like to get that infected's entity in a variable for post proccessing (making it invisible, change render color, set custom health, ignite, etc). Any idea?? Thanks in advance |
Re: [L4D] How do I get an Special Infected created by "commentary_zombie_spawner"?
You can try to get the entity on "EntityCreated" by checking the entity's name in the next frame.
Maybe it helps. |
Re: [L4D] How do I get an Special Infected created by "commentary_zombie_spawner"?
I think that through this entity it is not possible, perhaps comparing the same spawn position, but it would be unsafe. I recommend using left4dhooks, using these natives since it returns their entity id:
PHP Code:
|
Re: [L4D] How do I get an Special Infected created by "commentary_zombie_spawner"?
You could do something like:
PHP Code:
|
Re: [L4D] How do I get an Special Infected created by "commentary_zombie_spawner"?
Thanks everybody for answering me. i completely forgot about left4dhooks spawn method. I started working with it recently. I have an idea, maybe this weekend I update my code
|
All times are GMT -4. The time now is 22:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.