Point_template

Tutorial collection, comprehensive listings on main site.

Point_template

Postby Tutorial on Sun Nov 06, 2005 12:31 pm

category
General Half-Life 2/Entities

description
An alternative to the npc_maker and in most cases far more powerful and useful.

keywords
point, template, point_template.

The point_template entity is very useful, as it allows the designer to force entities to spawn, even ones that don’t have that option built into their inputs.

In this example we are going to make a func_precipitation spawn when the point_template is triggered.

So create your entity as normal and adjust the various settings (we would set the func_precipitation brush up as desired at this stage) and also give it a name. Next add a point_template anywhere in the map and give it a name also.

Note that when the entity is linked with the point_template it will automatically be off by default, and appear when triggered.

Now you will need a trigger of some kind to start this whole process off, I have used a trigger_once on this occasion:

Image

So in the above image we have specified that when the trigger is met it will tell template1 (point_template) to ForceSpawn and this will spawn whatever is in the point_template options at that time, which we will look at now:

Image

Here I have simply placed the name of the func_precipitation entity in the Template 1 field, so when triggered it will force the rain to commence pouring. As you can see you can have many templates setup in just one entity, so it can be very useful for complex scripts.

-Blink
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Re: Point_template

Postby chargers5583 on Fri Apr 03, 2009 12:45 am

thank you helped alot
User avatar
chargers5583
Member
Member
 
Joined: Thu Mar 12, 2009 3:22 am
Location: Home of the CHARGERS

Return to Tutorials

Who is online

Users browsing this forum: No registered users