Scripts / player look at entity

Author
Message
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 9th Apr 2017 15:03 Edited at: 9th Apr 2017 15:06
Can we force the player to look at the entity just before a freezeplayer command is initiated. This is as opposed to entity looking at player. You want the human player to focus on an item rather than staring off into space while a description is displayed in a prompt message. It doesn't look like there is an actual command for this as there was in FPSC. It would be easy to implement I would think. Is there -- at least -- a way to set the camera downward a little bit if it can be determined that the player is looking over the entity in question?
When in doubt -- C4 :heh, heh, heh:

-Jamie Hyneman
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 9th Apr 2017 15:13
Smallg has written a few functions that may help with this. But there is not a direct command like in FPSC.

Check here:
https://forum.game-guru.com/thread/207801

Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 9th Apr 2017 15:16
Hi Pirate Myke, thanks. I've been meaning to tell you how great that train set looks. Also, this probably should have been placed in the Scripts forums. Sorry.
When in doubt -- C4 :heh, heh, heh:

-Jamie Hyneman
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 9th Apr 2017 15:21
Thank you. They are getting there.

Not a problem, I can transfer the thread over there.

Thread moved at OP's request.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 9th Apr 2017 15:22
Sure, I did it in my WIP new Beginnings. You can simply set a freeze position and angle, then freeze the player until the cutscene is over. You can do this for cutscenes or anything really.


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.

Login to post a reply

Server time is: 2024-04-26 13:32:00
Your offset time is: 2024-04-26 13:32:00