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
Saren Offline
Member

Posts: 196
Threads: 20
Joined: Jan 2012
Reputation: 1
#41
RE: Wake up script

(05-10-2012, 01:38 PM)Adrianis Wrote: Dude you need to tell us whats wrong. Is there a script error, is the thing just not happening, is it all happenin too fast or is just one part not working? Yes, OnStart should be at the top. TBH I've never tried having it elswhere but I don't think it would react too well, and for organisational purposes I recommend always having OnStart at the start of the script, as this is where the initial setup of variables and callbacks should take place.

It looks like there is still no callback in OnStart to actually start the WakeUp, which you may want. Also, all the stuff in your WakeUp function is going to be executed immediately and simultaneously, from whats in there you probably want some parts to be delayed. Things like the FadeIn/Out, SetPlayerActive/Crouching etc should be done in OnStart. If this wakeing up happens immediatly at the start of the game, then you will probably want all of it in OnStart.

If I was in your position right now, the best thing I could do to figure this out is find a working example of a script for this sort of 'waking up' sequence, study it, and replicate bit by bit till you understand all the parts that are going in. The problem is that this can be quite a complicated sequence to achieve, and if you are not familiar with the flow of logic and how to use functions/loops you may find it very difficult.
I did put it back on top... and I have looked at the wake up thing from the Nepsis story...... holy christ that makes no sense!!!! And... what makes even less sense... there's no calback! ANYWHERE.......
world.... Y U MAKE NO SENSE??

05-10-2012, 07:24 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: 2 Guest(s)