Raised This Month: $ Target: $400
 0% 

How to create a (custom) target?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ALIENMODSX
BANNED
Join Date: Nov 2008
Old 08-02-2009 , 15:58   How to create a (custom) target?
Reply With Quote #1

I was wondering how I can create a (custom) target to an entity by targetname?


Example:

Targetname is "button".
There is not target, but I want "door" to be the target.


+Karma for helpers, ofc.
ALIENMODSX is offline
Firippu
Senior Member
Join Date: Jan 2007
Old 08-02-2009 , 16:13   Re: How to create a (custom) target?
Reply With Quote #2

Requires Fakemeta

PHP Code:
public whatever()
{
    new 
ent

    
while((ent engfunc(EngFunc_FindEntityByStringent,"targetname","button")) != 0)
        
set_pev(ent,pev_target,"door")

__________________

Last edited by Firippu; 08-02-2009 at 17:41.
Firippu is offline
ALIENMODSX
BANNED
Join Date: Nov 2008
Old 08-02-2009 , 16:26   Re: How to create a (custom) target?
Reply With Quote #3

Thanks. I will test. +Karma
ALIENMODSX 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 18:25.


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