Frictional Games Forum (read-only)
Custom Story Help! - 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: Custom Story Help! (/thread-7238.html)



Custom Story Help! - Josh707 - 04-07-2011

Hey everyone Smile I've been editing a map for a few days now and at the start my character is supposed to wake up in bed. For a while I had him use the SetPlayerCrouching(true) function and the screen fades in from white to the flashback of Daniel talking with that guy about his nightmares. But people don't normally wake up sitting upright... so how do I change the camera position? I tried MovePlayerHeadPos but I don't think i'm doing it right... I have it set so when "Player" collides with a certain script area and I have no idea what to set for the axes if I don't want it to move left and right( I tried "", and "0". Both gave me errors) Every way I've tried to set it I get FATAL ERROR. Could someone explain how to use this function properly? I've never learned any programming languages and I just started on this one like 4 days ago.


tl;dr: How do I properly set the camera height to lower than the default? Preferably toggle-able (with "Player" colliding with an area).



EDIT: I am trying to set up timers. I made a timer go off and you look at the object I specified, but the next timer in the list to stop looking at it wont go off. If anybody is willing to help just ask me to put up the section of the timers I have and I will. Thanks in advance!


RE: Custom Story Help! - MrBigzy - 04-07-2011

The axis for what function? And yeah, MovePlayerHeadPos moves the camera, y axis is height by default.


RE: Custom Story Help! - Josh707 - 04-08-2011

(04-07-2011, 10:19 PM)MrBigzy Wrote: The axis for what function? And yeah, MovePlayerHeadPos moves the camera, y axis is height by default.

I meant the axis to move up and down, which is Y. I decided to scrap that idea for now until I learn more about writing scripts... anyways, sorry if you don't want to answer this question but I'm trying to make a timer to make my character look at a piano when the timer ends, and he does, but how can I set a timer to make him stop looking? nothing works >_< refer to the main post for more detail


RE: Custom Story Help! - MrBigzy - 04-08-2011

Put up the section. Tongue


RE: Custom Story Help! - Josh707 - 04-13-2011

Sorry, I had some computer problems and I got everything working. Thanks anyways though Tongue