Get all entities' targetname
I'm new here , and new with AMXX
I wanna code a "auto healing" script for kz maps with HPB,and with targetname to recognize the HPB, such as healingdoor,goddoor,etc. I've already approach some,like EngFunc_FindEntityByString, but it needs a particular targetname. If I want to get all entities' targetname, and store them in a vector, then ...? Help me ,plz. Many thx! |
Re: Get all entities' targetname
Use pev_targetname.
|
Re: Get all entities' targetname
@Dores,thx
how about get total entity numbers? |
Re: Get all entities' targetname
entity_count();
Returns the number of entities in the world. fakemeta_util also have fm_entity_count(); |
Re: Get all entities' targetname
global_get( glb_maxClients ) will return the number max of entities. ( max = 900 + 15 * ( max_slot - 1 ) )
engfunc( EngFunc_NumberOfEntities ) will return the number of used entities. |
Re: Get all entities' targetname
Finally, I use EV_FL_dmg instead, it's much easier and more accurate.
Thx all your help, guys!!!!:) |
| All times are GMT -4. The time now is 08:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.