Frictional Games Forum (read-only)
[SCRIPT] WakeUp Script help needed! - 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: [SCRIPT] WakeUp Script help needed! (/thread-24035.html)



WakeUp Script help needed! - Ardie - 12-05-2013

Hi people.

I'm making a story, and I have this problem with the WakeUp Script.





Anyone know the solution to fix this?

Sorry for it not being 16:9 I had the game on windowed 1024x768 resolution.


RE: WakeUp Script help needed! - RaideX - 12-05-2013

(12-05-2013, 09:56 PM)Ardie Wrote: Hi people.

I'm making a story, and I have this problem with the WakeUp Script.





Anyone know the solution to fix this?

Sorry for it not being 16:9 I had the game on windowed 1024x768 resolution.

i think it would be the best if you first give is your .hps file or just write the content here. Thanks


RE: WakeUp Script help needed! - Ardie - 12-05-2013

http://pastebin.com/t6jnz6ft here's the .hps code.


RE: WakeUp Script help needed! - RaideX - 12-05-2013

try using (i'm not 100% sure with this fix)

PHP Code:
string &in asTimer 

instead of

PHP Code:
string &in timer_name 

and change the code accordingly. (if you know how to do so!)

EDIT: It seems that you use "MovePlayerHeadPos". I think what you want to do here is either make it back to normal or let the player get up. For that you will most likely have to use "FadePlayerRollTo". I'm not entirely sure with the numbers for that function but i guess you'll figure it out!

EDIT2:

I think i've figured it out:

PHP Code:
else if (timer_name == "MoveHead")
        {
                
MovePlayerHeadPos(13.750, -2.522);  //Try deleting this Line!
                
FadePlayerRollTo(02500);
                
AddTimer("ActivatePlayer"2"WakeUp");
        } 



RE: WakeUp Script help needed! - Ardie - 12-05-2013

(12-05-2013, 10:18 PM)RaideX Wrote:
(12-05-2013, 09:56 PM)Ardie Wrote: Hi people.

I'm making a story, and I have this problem with the WakeUp Script.





Anyone know the solution to fix this?

Sorry for it not being 16:9 I had the game on windowed 1024x768 resolution.

i think it would be the best if you first give is your .hps file or just write the content here. Thanks

(12-05-2013, 11:19 PM)RaideX Wrote: try using (i'm not 100% sure with this fix)

PHP Code:
string &in asTimer 

instead of

PHP Code:
string &in timer_name 

and change the code accordingly. (if you know how to do so!)

EDIT: It seems that you use "MovePlayerHeadPos". I think what you want to do here is either make it back to normal or let the player get up. For that you will most likely have to use "FadePlayerRollTo". I'm not entirely sure with the numbers for that function but i guess you'll figure it out!

EDIT2:

I think i've figured it out:

PHP Code:
else if (timer_name == "MoveHead")
        {
                
MovePlayerHeadPos(13.750, -2.522);  //Try deleting this Line!
                
FadePlayerRollTo(02500);
                
AddTimer("ActivatePlayer"2"WakeUp");
        } 

Okay, I will try that, thanks.

Edit: http://gyazo.com/8c012e22360c29aa0d47b33defd8133f , went back with timer_name and it works. Thanks, deleting that line worked.