Looking around upon start - 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: Looking around upon start (/thread-17627.html) Pages:
1
2
|
Looking around upon start - The Shanus - 08-10-2012 So I forgot how to make the player look around properly, it would seem. What I want to do, is have the player look at a few objects as he spawns. I tried to make him collide with his own spawn area, as you see, but it didn't work. I'm not sure what to do p: It's 2.30am here so I'll be posting this and checking for replies in the morning. Thanks in advance. PHP Code: void OnStart() RE: Looking around upon start - Statyk - 08-10-2012 The syntax is incorrect. void lookingaround1(string &in asParent, string &in asChild, int alState) RE: Looking around upon start - Theforgot3n1 - 08-10-2012 (08-10-2012, 01:03 AM)Statyk Wrote: The syntax is incorrect.And also, double ";" at FadePlayerFOVMulTo(1, 1);; RE: Looking around upon start - The Shanus - 08-10-2012 (08-10-2012, 05:04 AM)Theforgot3n1 Wrote:Changed both, but it didn't fix it p: I think the problem is my callback, no?(08-10-2012, 01:03 AM)Statyk Wrote: The syntax is incorrect.And also, double ";" at EDIT: Yes, the problem was with the callback, but now I have another problem - When he looks at the object, his head rolls and unnaturally turns 90 degrees. RE: Looking around upon start - Theforgot3n1 - 08-10-2012 (08-10-2012, 08:33 AM)The Shanus Wrote:(08-10-2012, 05:04 AM)Theforgot3n1 Wrote:Changed both, but it didn't fix it p: I think the problem is my callback, no?(08-10-2012, 01:03 AM)Statyk Wrote: The syntax is incorrect.And also, double ";" at Code: void OnStart() Does this work for you? I honestly don't get what it is you actually need help with. RE: Looking around upon start - The Shanus - 08-10-2012 (08-10-2012, 08:59 AM)Theforgot3n1 Wrote:Check the bold edit! Then maybe you can help [; But thanks for the duplicate. It's for an intro, so I don't want the player to be able to control it - imagine it as a cinematic of sorts.(08-10-2012, 08:33 AM)The Shanus Wrote:(08-10-2012, 05:04 AM)Theforgot3n1 Wrote:Changed both, but it didn't fix it p: I think the problem is my callback, no?(08-10-2012, 01:03 AM)Statyk Wrote: The syntax is incorrect.And also, double ";" at EDIT: Forget it, I just had to move the box he was looking at. Looking around, player seems to get bored of it. - The Shanus - 08-10-2012 Hey guys, so I've got my guy looking around, but for some reason, after looking at his right arm, he gets lazy, and decides to just stay looking at it, even though I see nothing wrong with the functions. He doesn't go on to look at his bloody chest or the scientist, and I'm not sure why. Here's the relevant script: PHP Code: AddEntityCollideCallback("Player", "corpse_male_1", "lookingaround1", true, 1); RE: Looking around, player seems to get bored of it. - Ongka - 08-10-2012 I think you have to add a StopPlayerLookAt; in the beginning of a new LookAtTimer. RE: Looking around, player seems to get bored of it. - The Shanus - 08-10-2012 (08-10-2012, 11:42 AM)Ongka Wrote: I think you have to add a StopPlayerLookAt; in the beginning of a new LookAtTimer.But it works for the first three, so why not for the rest? p: RE: Looking around, player seems to get bored of it. - Ongka - 08-10-2012 It may also be that this function doesn't work on static objects, because the blood pool is either a decal or static object and the black plane also. And you don't have to use invisible box masses, you can just use areas for look-ats. |