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
Script Help Wake up script
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#8
RE: Wake up script

Void WakeUp (string &in timer_name)
{
if (timer_none == "Start")
{
AddTimer("MoveHead", 1, "WakeUp");
}
else if (timer_name == "MoveHead")
{
MoverPlayerHeadPos(0.5, -0.2, 1.1, 2, 2);
FadePlayerRollTo(0, 1.7, 500);
AddTimer("ActivatePlayer", 2, "WakeUp");
}
else if (timer_name == ActivatePlayer")
{
MovePlayerHeadPos(0, 0, 0, 2, 2);
SetPlayerActive(true)
}

Your missing a '}' at the end. You've closed your final 'else if' but you havn't closed the function. If that still isn't it, then there may be any number of issues with your logic that we can't see. I recommend you add some debugging to find the point at which it's not working, then itll be easier to figure out why
(This post was last modified: 04-30-2012, 01:17 PM by Adrianis.)
04-30-2012, 01:16 PM
Find


Messages In This Thread
Wake up script - by Saren - 04-30-2012, 11:44 AM
RE: Wake up script - by trollox - 04-30-2012, 11:50 AM
RE: Wake up script - by Saren - 04-30-2012, 12:19 PM
RE: Wake up script - by Your Computer - 04-30-2012, 12:27 PM
RE: Wake up script - by Saren - 04-30-2012, 12:31 PM
RE: Wake up script - by Your Computer - 04-30-2012, 12:38 PM
RE: Wake up script - by Saren - 04-30-2012, 12:42 PM
RE: Wake up script - by Adrianis - 04-30-2012, 01:16 PM
RE: Wake up script - by Saren - 04-30-2012, 05:15 PM
RE: Wake up script - by JetlinerX - 04-30-2012, 05:26 PM
RE: Wake up script - by Saren - 04-30-2012, 07:55 PM
RE: Wake up script - by Adrianis - 05-01-2012, 07:48 PM
RE: Wake up script - by Saren - 05-01-2012, 11:05 PM
RE: Wake up script - by Adrianis - 05-02-2012, 07:26 PM
RE: Wake up script - by Saren - 05-03-2012, 12:48 PM
RE: Wake up script - by Homicide13 - 05-03-2012, 03:13 PM
RE: Wake up script - by Saren - 05-04-2012, 02:19 PM
RE: Wake up script - by Homicide13 - 05-04-2012, 02:50 PM
RE: Wake up script - by Saren - 05-04-2012, 03:08 PM
RE: Wake up script - by Homicide13 - 05-04-2012, 06:59 PM
RE: Wake up script - by Saren - 05-04-2012, 10:17 PM
RE: Wake up script - by Homicide13 - 05-04-2012, 10:20 PM
RE: Wake up script - by Saren - 05-04-2012, 10:30 PM
RE: Wake up script - by Homicide13 - 05-05-2012, 12:35 AM
RE: Wake up script - by Saren - 05-05-2012, 12:57 AM
RE: Wake up script - by FragdaddyXXL - 05-04-2012, 11:43 PM
RE: Wake up script - by Saren - 05-05-2012, 12:00 AM
RE: Wake up script - by Homicide13 - 05-05-2012, 01:08 AM
RE: Wake up script - by Saren - 05-05-2012, 01:09 AM
RE: Wake up script - by Cranky Old Man - 05-05-2012, 02:01 AM
RE: Wake up script - by Saren - 05-05-2012, 02:21 AM
RE: Wake up script - by Your Computer - 05-05-2012, 02:29 AM
RE: Wake up script - by Saren - 05-05-2012, 02:40 AM
RE: Wake up script - by Your Computer - 05-05-2012, 02:45 AM
RE: Wake up script - by Saren - 05-05-2012, 02:47 AM
RE: Wake up script - by Cranky Old Man - 05-05-2012, 02:44 AM
RE: Wake up script - by Your Computer - 05-05-2012, 04:23 PM
RE: Wake up script - by Saren - 05-05-2012, 06:42 PM
RE: Wake up script - by Saren - 05-10-2012, 11:31 AM
RE: Wake up script - by Adrianis - 05-10-2012, 01:38 PM
RE: Wake up script - by Saren - 05-10-2012, 07:24 PM
RE: Wake up script - by Adrianis - 05-10-2012, 09:38 PM
RE: Wake up script - by Saren - 05-10-2012, 10:33 PM
RE: Wake up script - by Adrianis - 05-10-2012, 10:51 PM
RE: Wake up script - by Saren - 05-10-2012, 11:19 PM
RE: Wake up script - by Adrianis - 05-11-2012, 12:01 AM
RE: Wake up script - by Saren - 05-11-2012, 12:05 AM
RE: Wake up script - by Adrianis - 05-11-2012, 09:37 AM
RE: Wake up script - by Saren - 05-11-2012, 10:31 AM
RE: Wake up script - by Adrianis - 05-11-2012, 01:35 PM
RE: Wake up script - by Saren - 05-11-2012, 08:45 PM
RE: Wake up script - by Adrianis - 05-11-2012, 09:15 PM
RE: Wake up script - by Saren - 05-11-2012, 10:40 PM
RE: Wake up script - by Adrianis - 05-11-2012, 11:19 PM
RE: Wake up script - by Saren - 05-12-2012, 01:03 AM
RE: Wake up script - by Adrianis - 05-12-2012, 04:08 PM
RE: Wake up script - by Saren - 05-13-2012, 03:28 AM
RE: Wake up script - by Rownbear - 05-13-2012, 04:35 PM
RE: Wake up script - by Saren - 05-13-2012, 08:23 PM
RE: Wake up script - by Adrianis - 05-13-2012, 09:10 PM
RE: Wake up script - by Saren - 05-14-2012, 02:14 AM
RE: Wake up script - by Statyk - 05-14-2012, 03:52 AM
RE: Wake up script - by Saren - 05-14-2012, 08:12 AM
RE: Wake up script - by Adrianis - 05-14-2012, 01:16 PM
RE: Wake up script - by Mine Turtle - 05-14-2012, 03:01 PM
RE: Wake up script - by Adrianis - 05-14-2012, 03:48 PM
RE: Wake up script - by Saren - 05-14-2012, 05:13 PM
RE: Wake up script - by Adrianis - 05-14-2012, 06:39 PM
RE: Wake up script - by Saren - 05-14-2012, 07:03 PM
RE: Wake up script - by Cranky Old Man - 05-14-2012, 06:56 PM
RE: Wake up script - by Adrianis - 05-14-2012, 07:10 PM



Users browsing this thread: 1 Guest(s)