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
#Can point_template spawn triggers?
1 messages · Page 1 of 1 (latest)
it might be game dependent but you can spawn triggers with point_template in garrys mod
CreateInstance called on a point_template that has no templates: t_trigger this is the console error
have a look at https://developer.valvesoftware.com/wiki/Point_template and read this note , i think you have to add your template to a whitelist but i don't do much tf2 mapping so not really sure
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)
regardless
https://developer.valvesoftware.com/wiki/S_PreserveEnts#Team_Fortress_2
triggers dont seem to be part of it
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
https://cdn.discordapp.com/attachments/740878737423204392/751806432281886871/unknown.png?ex=6686ad4d&is=66855bcd&hm=8fb659aa358c334cabbb755ffcfc269d0db30acc06feaa673ba0795287c162c0&
https://cdn.discordapp.com/attachments/740878737423204392/751806403353509978/unknown.png?ex=6686ad46&is=66855bc6&hm=70d6ae14be75d063ff9e649ac15947c28d2e8e9f377d8501d1568f43443ae3a7&