Talk:Func lookdoor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Oh, but it doesn't exist in the fgd.)
 
Line 6: Line 6:


Did you not see? I added the target keyvalue to this page...which sets m_target—'''[[User:Ts2do|ts2do]]''' 09:59, 23 Sep 2007 (PDT)
Did you not see? I added the target keyvalue to this page...which sets m_target—'''[[User:Ts2do|ts2do]]''' 09:59, 23 Sep 2007 (PDT)
:I seemed to have missed that. The ''target'' value doesn't exist in the FGD though, so you should mark it as such. --[[User:Andreasen|Andreasen]] 10:09, 23 Sep 2007 (PDT)

Latest revision as of 10:09, 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)

Did you not see? I added the target keyvalue to this page...which sets m_target—ts2do 09:59, 23 Sep 2007 (PDT)

I seemed to have missed that. The target value doesn't exist in the FGD though, so you should mark it as such. --Andreasen 10:09, 23 Sep 2007 (PDT)