Raised This Month: $ Target: $400
 0% 

Finding Entities in a Sphere?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jim_yang
Veteran Member
Join Date: Aug 2006
Old 01-31-2007 , 23:40   Re: Finding Entities in a Sphere?
Reply With Quote #1

so your npc's classname is not monster_*, you should set their classname to monster_* when your create them
Code:
public sphere(id) {         new Float:origin[3], ent, classname[32]         pev(id, pev_origin, origin)         while((ent = fm_find_ent_in_sphere(ent, origin, 100.0)))         {                 pev(ent, pev_classname, classname, 31)                 if(equali(classname, "monster_zombie") || equali(classname, "monster_scientist") || equali(classname, "monster_barney"))                 {                         fm_set_rendering(ent,kRenderFxGlowShell,200,130,42,kRenderNormal,16)                         console_print(id,"[DEBUG] Ents found: %d", ent)                 }         }         return PLUGIN_HANDLED }
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>

Last edited by jim_yang; 01-31-2007 at 23:43.
jim_yang is offline
Reply



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 00:35.


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