Raised This Month: $ Target: $400
 0% 

'find_ent_by_class' Equivalent in FakeMeta?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 02-28-2006 , 11:49   'find_ent_by_class' Equivalent in FakeMeta?
Reply With Quote #1

I'm trying to convert this simple line of code from something that uses the engine module to something that uses the fakemeta module. However, I'm barely familiar with fakemeta at best and thus, have little idea where to begin.

Can someone show me how I'd use fakemeta to achieve the same functionality as I get by using engine?
Code:
g_mapHasBomb = find_ent_by_class(-1, "func_bomb_target");
As you can see in the code, all I'm trying to do is find out if the current map has a bomb target in it (thus presumably a bomb as well). That's it.
Brad 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 20:18.


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