change entity target

Phisionary

Newbie
Joined
Jul 2, 2003
Messages
1,305
Reaction score
0
Is there a way to change the target of an entity? I tried to search, but only found info for HL1, which apparently had a func_changetarget entity or something like that.

Specifically, I'd like to change the destination target of a teleport though a script. Anybody know how I could accomplish this?

thx.
 
Well there's an add output, there should be something similar to do what you want. There's not a seperate entity for this though (Why would there be? That'd just be an annoyance).
 
I don't see why... apparently there used to be one.

If there is any feature of any entity that can change the target of another, I haven't found it. May it possibly be through the 'Override' thing? I don't know, I don't really understand that feature's utility, yet.
 
Are you talking about prop_physics_override and prop_dynamic_override?
Those are used to use static props as dynamic ones and vice versa...
 
No, I was refering to the outputs panel for an entity. I saw it used with a trigger brush to override a players health to 0, in an earlier thread. I don't know-- just shooting blindly here.
 
The ai_changetarget entity can change an entity's "Target" property, but not the targets of its outputs.

This, incidentally, could be used to change a teleporter's destination.

An input's override consists of additional data for the input. The SetParent input, for instance, would be useless if you don't also declare what to set the parent to.
 
ah. well that explains it. That sounds exactly like what I want, but it's not in my entities drop-down.

Maybe because I'm working on a CS:S map? I can't see why it wouldn't be available, though.

Or could it be that it just isn't in the list, and I have to get a new entity-list-thingy (I forgot what they are called, but I remember one is required to spawn weapons, I.E. for an 'fy_' type map).

Thanks for the info. If anyone is aware of how this could be accessed for CS:S, I'd appreciate it.
 
Oh, hot damn. so sweet. custom FGD's, courtesy Raeven0 & Groundflyer, has this entity in stock. :E cheers mate :cheers:

ne1 else interested, check 'em out
 
Back
Top