Frictional Games Forum (read-only)
How to move camera angle horizontally - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How to move camera angle horizontally (/thread-20330.html)



How to move camera angle horizontally - tonitoni1998 - 02-14-2013

i want to make a look-around animation where the player looks to the left and right etc. not FadePlayerRollTo


RE: How to move camera angle horizontally - MulleDK19 - 02-14-2013

StartPlayerLookAt.

Maybe you should consider putting all your questions into one single thread?


RE: How to move camera angle horizontally - tonitoni1998 - 02-14-2013

(02-14-2013, 07:25 PM)MulleDK19 Wrote: StartPlayerLookAt.

Maybe you should consider putting all your questions into one single thread?

and i dont mean looking at and entity. i just want to change the horizontal angle.



im just scripting and i always get new question :/ sorry about that but not everything is in the wiki.


RE: How to move camera angle horizontally - NaxEla - 02-14-2013

You need to call the function MovePlayerHeadPos. This function is listed in the engine scripts on the wiki.


RE: How to move camera angle horizontally - MulleDK19 - 02-14-2013

(02-14-2013, 07:52 PM)NaxEla Wrote: You need to call the function MovePlayerHeadPos. This function is listed in the engine scripts on the wiki.

Nah. He doesn't want to reposition the head. He want the player to look around.

He'll need StartPlayerLookAt, StopPlayerLookAt and AddTimer. All of which are documented.


RE: How to move camera angle horizontally - NaxEla - 02-14-2013

Well... you already suggested that and he said that that wasn't what he was looking for. I also partially misread that he wanted the players head to move horizontally (as in on the horizontal plane).


RE: How to move camera angle horizontally - tonitoni1998 - 02-14-2013

well i suppose i HAVE to use the lookat. thanks for the help


RE: How to move camera angle horizontally - MulleDK19 - 02-14-2013

(02-14-2013, 08:00 PM)NaxEla Wrote: Well... you already suggested that and he said that that wasn't what he was looking for. I also partially misread that he wanted the players head to move horizontally (as in on the horizontal plane).

That's how you do it. He wants him to look left and right, so you place 2 areas, and use StartPlayerLookAt to make him face the areas.