Raised This Month: $ Target: $400
 0% 

How to loop all entities?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 07-19-2011 , 11:44   Re: How to loop all entities?
Reply With Quote #5

Quote:
Originally Posted by Exolent[jNr] View Post
entity_count() gives the number of entities in the server, not max entities.
Instead, you should use global_get(glb_maxEntities) and loop like you would for max players, except checking if entities are valid.
But doesn't the number of entities reflect indexes also? I don't think you can have an entity id above entity_count()
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode