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

[TF2] Get Objects


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Scag
AlliedModders Donor
Join Date: May 2017
Location: Crashing Hale
Old 01-29-2020 , 19:26   [TF2] Get Objects
Reply With Quote #1

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
__________________
Over-engineering is underrated.

GitHub
BTC
ETH

Retired

Last edited by Scag; 07-16-2020 at 11:26.
Scag 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 14:18.


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