Raised This Month: $ Target: $400
 0% 

Getting Map Entities


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shine771
Senior Member
Join Date: Jun 2007
Old 01-12-2009 , 16:28   Getting Map Entities
Reply With Quote #1

I made a map, with custom entities. Compiled fine. I want to find those entities with amxx and get origin and keyvalues. Seems like i can't find those entities... i tried:

PHP Code:
new ent=-1,n
while((ent=engfunc(EngFunc_FindEntityByString,ent,"classname","my_classname")) != && MAX_FLAGS+1
   
n++
        
log_amx("n=%d",n
n returned 0
I also tried registering FM_Spawn forward in precache and unregistering it on plugin_init.. it logged all entities except mine... I tried with FM_KeyValue.. the same. All except mine. I decompiled the map and still those entities were there. Strange? Any ideas?
shine771 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:43.


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