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

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#11
RE: ATDD-Scripting

(02-10-2014, 02:04 AM)Mudbill Wrote:
(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.

Oops! My bad, of course they shouldn't be there. Blush

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
02-10-2014, 05:58 PM
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: 2 Guest(s)