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
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#20
RE: Wake up script

That's an open bracket. Every '{' needs to have a '}' somewhere to close the block off.

For example, your code
PHP Code: (Select All)
void OnEnter()

{

AddUseItemCallback("""crowbar_1""crowbar_door""UsedCrowbarOnDoor"true);

AddEntityCollideCallback("crowbar_joint_1""ScriptArea_1""CollideAreaBreakDoor"true1);


calls everything between the {} charecters (in this case AddUseItemCallback and AddEntityCollideCallback) whenever the function (OnEnter) is called. The compiler (in this case the game that loads the map file) needs these bracket characters so that it knows what the contents of functions (or some statements such as if then statements or switch statement) are.

05-04-2012, 06:59 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: 15 Guest(s)