AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Find ent by class (https://forums.alliedmods.net/showthread.php?t=47073)

The Specialist 11-09-2006 05:33

Find ent by class
 
ok first two thing . i need the equivelent to find_ent_by_class and find_ent_in_sphere , without using engine . I need the fakemeta way to do those. any ideas ? :|

VEN 11-09-2006 06:40

Re: Find ent by class
 
Fakemeta Utilities

The Specialist 11-09-2006 06:59

Re: Find ent by class
 
hhmmm , I wish BAILOPAN would add fakemeta util to the standard amxmodx pack already. It is very usefull , Ive used it before. But its a pain in the ass for users of a plugin to have to downlaod and install things(bunch of noobs). mayee ill just use the fakemeta util pack instead of engine or fakemeta. :up:

EDIT: for fm_find_ent_by_class(-1, "player")
would player be a valid class ?

VEN 11-09-2006 07:44

Re: Find ent by class
 
Yes, of course. Also you can just copy necessary macros/stock functions to your plugin.

Zenith77 11-09-2006 08:34

Re: Find ent by class
 
You can also do it:

Code:
engfunc(EngFunc_FindEntityByString, get_maxplayers(), "classname", "myclassname");

The Specialist 11-09-2006 08:35

Re: Find ent by class
 
from your include file of the fakemeta util? yeah , i could. but it will be alot cleaner to just include the whole file , casue il probly use alot of functions , thanks again VEN +karma:)


All times are GMT -4. The time now is 06:51.

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