Talk:Func lookdoor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(How could I miss this line?)
Line 1: Line 1:
How do I set this "target"? Without it, this entity refuses to work in-game. According to [http://www.inxbus.net/hldoc/d9/d93/look__door_8cpp-source.html look_door.cpp] this target should come from the ''m_target'' variable, but this variable is never defined (in that file, at least). I don't think that this entity works at all. --[[User:Andreasen|Andreasen]] 19:50, 22 Sep 2007 (PDT)
How do I set this "target"? Without it, this entity refuses to work in-game. According to [http://www.inxbus.net/hldoc/d9/d93/look__door_8cpp-source.html look_door.cpp] this target should come from the ''m_target'' variable. If this variable is defined anywhere within this file, it must be here:
 
m_hLooker = (CBaseEntity*)gEntList.FindEntityByName( NULL, m_target, NULL );
I think you need to set target to "!player" for it to trigger when the player looks at it. [[User:Solokiller|Solokiller]] 07:54, 23 Sep 2007 (PDT)
I don't know anything more than that, so good luck in finding out how ''m_target'' is defined. --[[User:Andreasen|Andreasen]] 07:56, 23 Sep 2007 (PDT)
:I think you need to set target to "!player" for it to trigger when the player looks at it. [[User:Solokiller|Solokiller]] 07:54, 23 Sep 2007 (PDT)
::Sure, but where to do I do this? There is no keyvalue for setting the target. --[[User:Andreasen|Andreasen]] 07:56, 23 Sep 2007 (PDT)

Revision as of 07:56, 23 September 2007

How do I set this "target"? Without it, this entity refuses to work in-game. According to look_door.cpp this target should come from the m_target variable. If this variable is defined anywhere within this file, it must be here:

m_hLooker = (CBaseEntity*)gEntList.FindEntityByName( NULL, m_target, NULL );

I don't know anything more than that, so good luck in finding out how m_target is defined. --Andreasen 07:56, 23 Sep 2007 (PDT)

I think you need to set target to "!player" for it to trigger when the player looks at it. Solokiller 07:54, 23 Sep 2007 (PDT)
Sure, but where to do I do this? There is no keyvalue for setting the target. --Andreasen 07:56, 23 Sep 2007 (PDT)