Talk:Func lookdoor: Difference between revisions
Jump to navigation
Jump to search
(How do I set the target?) |
(Oh, but it doesn't exist in the fgd.) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
How do I set this "target"? Without it, this entity refuses to work in-game. --[[User:Andreasen|Andreasen]] | 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 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) | |||
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)