Raised This Month: $32 Target: $400
 8% 

Get all entities indexes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SneakyFoxx
New Member
Join Date: Feb 2017
Old 02-11-2017 , 08:05   Get all entities indexes
Reply With Quote #1

Hello,

This maybe a newbie question and couldn't find an answer directly, but is there a way to get all entity indexes?
SneakyFoxx is offline
Michael Shoe Maker
Senior Member
Join Date: Apr 2016
Old 02-11-2017 , 08:31   Re: Get all entities indexes
Reply With Quote #2

All the indexes are from 0 to the max amount of entities.
Michael Shoe Maker is offline
psychonic

BAFFLED
Join Date: May 2008
Old 02-11-2017 , 12:23   Re: Get all entities indexes
Reply With Quote #3

Iterate on FindEntityByClassname with "*" as the classname.
psychonic is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 02-12-2017 , 16:41   Re: Get all entities indexes
Reply With Quote #4

Quote:
Originally Posted by Michael Shoe Maker View Post
All the indexes are from 0 to the max amount of entities.
You wont get referenced entities doing this.
__________________
Neuro Toxin is offline
psychonic

BAFFLED
Join Date: May 2008
Old 02-12-2017 , 18:09   Re: Get all entities indexes
Reply With Quote #5

Quote:
Originally Posted by Neuro Toxin View Post
You wont get referenced entities doing this.
You will if you use the actual max entities count (rather than GetMaxEntities which is the max edict count, for legacy reasons). It's just inefficient compared to the FindEntityByClassname method.
psychonic is offline
Reply


Thread Tools
Display Modes

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 02:20.


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