PlayerLookAt Intro (Pandemoneus') - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: PlayerLookAt Intro (Pandemoneus') (/thread-4648.html) |
PlayerLookAt Intro (Pandemoneus') - theDARKW0LF - 09-21-2010 So I copied Pandemoneus' script for the player to look left and right when he spawns in the map, replaced the entities to look at to the ones in the room I spawn in, but for some reason, it doesn't work even though I don't encounter any errors? Any help would be appreciated (especially from Pandemoneus )! Here's my code for the StartPlayerLookAt: Code: void Intro() EDIT: and I created a DoorScript for the player to look at since I'd like to get the slamming door script working too, so that shouldn't be the problem... RE: PlayerLookAt Intro (Pandemoneus') - Pandemoneus - 09-21-2010 Make sure you do Intro(); in OnStart() Code: //---- BEGIN INTRO ----// By the way, I found ways to make it look better in the code, but I will start using them on my next map. RE: PlayerLookAt Intro (Pandemoneus') - theDARKW0LF - 09-21-2010 (09-21-2010, 09:00 PM)Pandemoneus Wrote: Make sure you do Intro(); in OnStart() Ohh, maybe that's why... I'll check it out! EDIT: Yup, that was it, thanks for your help! Is there any way to combine the StartPlayerLookAt with a WakeUp Script, so it's as if the player had just woken up and then coughs and looks around? Here's the WakeUp script I have: Code: void wakeUp () { RE: PlayerLookAt Intro (Pandemoneus') - DamnNoHtml - 09-22-2010 All you'd have to do is add the look left and right function in the beginStory function. So, when the asleep effects wear off, beginStory runs, and he looks left and right. |