AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get all info_target entitys at plugin init (https://forums.alliedmods.net/showthread.php?t=117818)

Max! 02-04-2010 22:36

Get all info_target entitys at plugin init
 
I need to get all the info_target entities at plugin init so I can add models to them and other things. I placed the info_targets in places as templates for where I should spawn the models and such, But i cant figure out how to get them at init

Firippu 02-05-2010 01:13

Re: Get all info_target entitys at plugin init
 
This will find all info_target entities, allowing you to modify them.

Fakemeta
PHP Code:

new ent
while((ent engfunc(EngFunc_FindEntityByString,ent,"classname","info_target")) != 0)
{
    
// do something


Engine
PHP Code:

new ent
while((ent find_ent_by_class(ent,"info_target")) != 0)
{
    
// do something



Max! 02-05-2010 01:30

Re: Get all info_target entitys at plugin init
 
<3 thanks a bunch ;D


All times are GMT -4. The time now is 07:21.

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