Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Story script error
MaksoPL Offline
Member

Posts: 51
Threads: 26
Joined: Mar 2014
Reputation: 0
#1
Custom Story script error

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);
}
03-28-2014, 07:29 PM
Find Reply
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#2
RE: Custom Story script error

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: (Select All)
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: (Select All)
MovePlayerHeadPos(0, -1.50.0f1.0f0.1f); 
(This post was last modified: 03-28-2014, 07:54 PM by DnALANGE.)
03-28-2014, 07:46 PM
Find Reply
MaksoPL Offline
Member

Posts: 51
Threads: 26
Joined: Mar 2014
Reputation: 0
#3
RE: Custom Story script error

Thanks. Working.
03-28-2014, 08:31 PM
Find Reply




Users browsing this thread: 1 Guest(s)