Talk:Func lookdoor
Jump to navigation
Jump to search
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)