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:
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:
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
