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


Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ATDD-Scripting
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#9
RE: ATDD-Scripting

(02-09-2014, 08:41 PM)Wapez Wrote: Yes, and when you copied that and put it in your map you need to write this below it:

void OnEnter();
{

}

void OnLeave();
{

}

It's a simple wake up function but it works. Personally I would use a switch loop for best effect.

I'm guessing the semi-colons were just typos.

@OP
They are not supposed to be there though. These are also not required, but if you want to run scripts as the player is re-entering or leaving the level, use those. OnStart is only ran the first time the player loads the map, in case you didn't know.

02-10-2014, 02:04 AM
Find


Messages In This Thread
ATDD-Scripting - by LordOfDragons - 09-22-2013, 09:00 AM
RE: ATDD-Scripting - by PutraenusAlivius - 09-22-2013, 09:32 AM
RE: ATDD-Scripting - by LordOfDragons - 09-22-2013, 10:17 AM
RE: ATDD-Scripting - by LordOfDragons - 09-22-2013, 04:11 PM
RE: ATDD-Scripting - by DamnNoHtml - 09-22-2013, 06:43 PM
RE: ATDD-Scripting - by LordOfDragons - 02-09-2014, 08:23 PM
RE: ATDD-Scripting - by Wapez - 02-09-2014, 08:41 PM
RE: ATDD-Scripting - by Mudbill - 02-10-2014, 02:04 AM
RE: ATDD-Scripting - by Wapez - 02-10-2014, 05:58 PM
RE: ATDD-Scripting - by LordOfDragons - 02-09-2014, 08:59 PM
RE: ATDD-Scripting - by LordOfDragons - 02-10-2014, 12:32 PM
RE: ATDD-Scripting - by GrAVit - 02-12-2014, 10:10 AM
RE: ATDD-Scripting - by LordOfDragons - 03-03-2014, 07:59 PM
RE: ATDD-Scripting - by Mudbill - 03-03-2014, 09:25 PM
RE: ATDD-Scripting - by LordOfDragons - 03-04-2014, 12:33 AM
RE: ATDD-Scripting - by Deadon - 03-04-2014, 02:12 AM



Users browsing this thread: 1 Guest(s)