Raised This Month: $ Target: $400
 0% 

Get all info_target entitys at plugin init


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Max!
Member
Join Date: Jun 2009
Old 02-04-2010 , 22:36   Get all info_target entitys at plugin init
Reply With Quote #1

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
Max! is offline
Firippu
Senior Member
Join Date: Jan 2007
Old 02-05-2010 , 01:13   Re: Get all info_target entitys at plugin init
Reply With Quote #2

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

__________________
Firippu is offline
Max!
Member
Join Date: Jun 2009
Old 02-05-2010 , 01:30   Re: Get all info_target entitys at plugin init
Reply With Quote #3

<3 thanks a bunch ;D
Max! 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 07:21.


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