#Can point_template spawn triggers?

1 messages · Page 1 of 1 (latest)

rocky orchid
#

ive got a gamemode for tf2 being made....on xbox....yeah sounds weird and too much to explain. anyways im tring to make point_template make a trigger_multiple at players origins when they die. the triggers have specific outputs for things to work. when i use env_entity_maker with the template it says not templates found or whatever the error is. everything looks like its correct on my end unless im stupid lol. the point_template templatr01 is the triggers name and env_entity_maker has the correct point_template name tied to it. idk at this point. im starting to think triggers dont work with point templates

tawny shell
#

it might be game dependent but you can spawn triggers with point_template in garrys mod

rocky orchid
#

CreateInstance called on a point_template that has no templates: t_trigger this is the console error

ruby rover
near sky
#

the note is not 100% true
it works in some game, but it doesnt in other

#

in csgo, you could indeed AddOutput > classname info_target on a point template right when the map start, and that could turn it into a permanent entity, and "permanent" entities that were part of the template wouldnt get automatically killed on each round. so you could for example template a sky_camera

#

but in cs:s, that doesnt work per defaut for example.
(the way to make this possible is a funky workaround ,which consist of making the template have two classname post-compile. one "classname" "point_template" and one "classname" "info_target". which is annoying to setup as you gotta edit the map with VIDE entity editor after compiling)

near sky
# rocky orchid ive got a gamemode for tf2 being made....on xbox....yeah sounds weird and too mu...

so you should totally be able to use a trigger in a point template

Example:

point_template
Template entity name: MyTemplate
Template01: MyTrigger
Flags: None checked, so the entity you spawn get each a different suffix in their name ,and they are unique (or check "Preserve entity name" if you dont want that)

trigger_multiple
Trigger entity name: MyTrigger

env_entity_maker
entity maker name : MyMaker
point template to spawn : MyTemplate

Very important: the point template cube matters. if you put it at the center of the trigger in hammer, then the entity maker when spawning the entity, will be at the center of the trigger
the way a entity maker spawn entities is relative to how entities were with the template in hammer