Entity lingo

Grab your favourite IDE and tinker with the innards of game engines

Entity lingo

Postby sacrifist on Mon Jan 17, 2011 12:42 am

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.
sacrifist
Member
Member
 
Joined: Sun Nov 04, 2007 10:05 pm

Re: Entity lingo

Postby Armageddon on Mon Jan 17, 2011 1:30 am

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.
User avatar
Armageddon
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Sun Dec 14, 2008 5:53 am

Re: Entity lingo

Postby sacrifist on Mon Jan 17, 2011 6:47 am

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.
sacrifist
Member
Member
 
Joined: Sun Nov 04, 2007 10:05 pm

Re: Entity lingo

Postby dark0r on Tue Jan 18, 2011 9:48 pm

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
dark0r
Been Here A While
Been Here A While
 
Joined: Sat Mar 25, 2006 10:16 am
Location: de_hell

Return to Programming

Who is online

Users browsing this forum: No registered users