Raised This Month: $ Target: $400
 0% 

Check if entity enters world


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 06-03-2007 , 00:06   Check if entity enters world
Reply With Quote #1

I am trying to find out when a new entity enters the world.

I thought pfn_spawn would work but it turns out that isn't called in mid map

Example:
Code:
public pfn_spawn(entId) {     new className[64];     entity_get_string(entId, EV_SZ_classname, className, 63);         if(equali(className, "someClassName"))     {         // do something with entId entity     } }

I need something like that, but since pfn_spawn doesn't catch entities spawned in the middle of a map it doesn't work.
hlstriker 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 10:35.


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