AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [TF2] Get Objects (https://forums.alliedmods.net/showthread.php?t=321208)

Scag 01-29-2020 19:26

[TF2] Get Objects
 
Much more fun than while looping every object entity. Doesn't work with artificially spawned buildings.

Example usage:
PHP Code:

int count TF2_GetObjectCount(client);
for (
int i 0count; ++i)
{
    
int obj TF2_GetObject(clienti);
    
char buf[32]; GetEntityClassname(objbufsizeof(buf));
    
PrintToChat(client"%s | %d"buf obj);


Spoiler


https://github.com/Scags/The-Dump/bl.../tf2objects.sp


All times are GMT -4. The time now is 18:53.

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