Frictional Games Forum (read-only)

Full Version: WakeUp Script help needed!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
(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
http://pastebin.com/t6jnz6ft here's the .hps code.
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");
        } 
(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.