Frictional Games Forum (read-only)

Full Version: Custom Story script error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi. I created a awake script and: main 12,1 ERR: Unexpected token '{'.
This is my script:

void OnStart ()
{
FadeOut(0);
FadeIn(3);
SetPlayerActive(true);
MovePlayerHeadPos(1.5,0,0.5,30,0.);
FadePlayerRollTo(60,100,100);
AddTimer("",4,"Wake");
}

void Wake(string &in asTimer);
{
MovePlayerHeadPos(1.15,1.3,0.4,7,1);
FadePlayerRollTo(0,30,30);
}
here is what you have added ;

Wrong : void Wake(string &in asTimer);
-
GOOD : void Wake(string &in asTimer)

The ; must NOT go there.
---
AND,
PHP Code:
MovePlayerHeadPos(1.5,0,0.5,30,0.); 

The last 0.
Make that something like 0.1 0.2 0.3 or something..
---
Here is an example from me :
PHP Code:
MovePlayerHeadPos(0, -1.50.0f1.0f0.1f); 
Thanks. Working.