Areaportalwindow
Post Reply
Quote
Re: Areaportalwindow
Posted by DrGlass on Thu Jan 13th at 9:45pm 2005


I'm makeing several areaportalswindows and I dont want to change their name every time I make a new one. Is there a way to set up a group of entities that all have unique name but keep their connection.

i.e. areaportalwindow named window_portal_1 renders window_1... and each one would have a diffrent number.




Quote
Re: Areaportalwindow
Posted by Zeon on Fri Jan 14th at 5:56am 2005


There is indeed. What you need is a point_template.

From the Source Entity guide, point_template is defined as:

Turns an entity, or set of entities, into a single template that can be instanced anywhere, and multiple times. If there are interdependencies (entity I/O, hierarchy, or other name eferences) between the entities in the template, the entities in the template will have their names changed and the interdependencies will be reconnected to the changes names. The name change format is as follows: '<original name>&0000', where the 0000 will be replaced with the current global template instance, so wildcard searches for '<original name>*' will still ind them. If you don't want the name fixup to happen, because you're only spawning the template once, or you want INPUTS to trigger all instances of the template, check the 'Preserve entity ames' spawnflag. >>

To spawn the template in other places, use an env_entity_maker.>>

> >

Template 1-16 Template01-16 <target_destination>

> >

1: Don't remove template entities: OFF

2: Preserve entity names (Don't do name fixup): ON





Quote
Re: Areaportalwindow
Posted by DrGlass on Fri Jan 14th at 6:19am 2005


hmmm I that seems to be a bit over my head, I though it might be the point_template I'll experiment with it a little bit.




Quote
Re: Areaportalwindow
Posted by Campaignjunkie on Fri Jan 14th at 6:26am 2005


Wow, I really had no idea such an entity even existed. Thanks, Zeon!

But the manual way isn't too difficult either. If you learn keyboard shortcuts, the entire cloning and renaming process should take about 30 seconds. In general though, you should be learning keyboard shortcuts anyway.
[addsig]




Quote
Re: Areaportalwindow
Posted by DrGlass on Fri Jan 14th at 9:03am 2005


the copy paste is easy, shift drag. Only problem is that I want the names to change.

i.e.

areaportalwindow
name = window_portal_1
Render = window_1

func_brush
name = window_1

I want to copy that about 15 times over, but I dont want to have to change each one of those names to somthing unique.







Post Reply