GetDebugName() worked a treat, cheers guys.

Iain

On Mon, Mar 22, 2010 at 1:41 AM, Brent Lewis <[email protected]> wrote:

>
> GetEntityName returns m_iName. GetDebugName returns m_iName unless it's a
> null string, in that case it returns m_iClassname. GetClassName returns
> m_iClassname.
>
> > Date: Mon, 22 Mar 2010 01:31:55 +0000
> > From: [email protected]
> > To: [email protected]
> > Subject: Re: [hlcoders] Getting entity name from Hammer
> >
> > That's the name of the entity class itself. I think GetDebugName() is
> > what Iain is after.
> >
> > On 22/03/2010 1:23, Brent Lewis wrote:
> > > CBaseEntity::GetEntityName()
> > >
> > >
> > >> Date: Mon, 22 Mar 2010 00:53:44 +0000
> > >> From: [email protected]
> > >> To: [email protected]
> > >> Subject: [hlcoders] Getting entity name from Hammer
> > >>
> > >> Hi list,
> > >>
> > >> I've created a basic new entity that signifies if a player is in an
> area to
> > >> get used to the engine. I've added it to the FGD and it works fine
> when in
> > >> game, insofar as it outputs to the console if the player enters the
> area.
> > >>
> > >> Say I name the entity "upstairs" or "ground" in the Object Properties
> window
> > >> in Hammer. Is there a relevant C++ function call that will retrieve
> the
> > >> name, so I can then output the location to console too? I assume it's
> > >> similar to GetModelName() but I'm not very experienced with the Source
> > >> engine and just don't know which function to call.
> > >>
> > >> Thanks for your time
> > >> Iain
> > >> _______________________________________________
> > >> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> > >> http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >>
> > >>
> > >
> > > _______________________________________________
> > > To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > >
> > >
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to