Im working on a source mod and this has put me to a halt. Is there a way to pass a targetname from one entity to another? Im killing an entity and creating a new one ingame and want the info from the one I killed to pass over to the new one I created. Any info on this is appreciated.
Armageddon wrote:Use a point_template, and tie your first entity to it, and then tie a trigger_once ot logic_relay or whatever to make it spawn one.
Thanks. This looks more map related though and I was wondering how I could hard code it into a model entity that I want to work throughout the game and not require mappers to have to do.
In the UpdateOnRemove (or something along these lines) method of your entity, you need to call CreateEntityByName to create the new entity you want. If this isn't what you mean, just explain in a little more detail :p