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
HELP!!!
Putmalk Offline
Senior Member

Posts: 290
Threads: 13
Joined: Apr 2012
Reputation: 15
#6
RE: HELP!!!

Okay, let me do this as clear as possible.

Do you know what a function is? Pretty much, any "scripting" we do on our maps are simply calling premade functions that do what we want them to do already.

We start out every file with three functions:

void OnStart()
{

}

void OnEnter()
{

}

void OnLeave()
{

}

That is how every script file should look.

Everything inside the brackets "{""}" in the OnStart() function will happen the FIRST AND ONLY FIRST TIME you enter a map. Everything inside OnEnter() will happen EVERY TIME you enter the map. Everything inside OnLeave() happens every time you leave the map.

This is the bare minimum for any map script file you want.

I am not going to continue to post until you reply to this comment.

(This post was last modified: 04-17-2012, 12:20 AM by Putmalk.)
04-17-2012, 12:19 AM
Find


Messages In This Thread
HELP!!! - by JPPSJ - 04-16-2012, 11:38 PM
RE: HELP!!! - by Putmalk - 04-17-2012, 12:01 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 12:06 AM
RE: HELP!!! - by MrIcabod123 - 04-17-2012, 12:12 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 12:14 AM
RE: HELP!!! - by Putmalk - 04-17-2012, 12:19 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 12:27 AM
RE: HELP!!! - by Putmalk - 04-17-2012, 12:37 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 12:39 AM
RE: HELP!!! - by Putmalk - 04-17-2012, 12:46 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 12:52 AM
RE: HELP!!! - by Putmalk - 04-17-2012, 12:53 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 12:57 AM
RE: HELP!!! - by Putmalk - 04-17-2012, 12:59 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 01:01 AM
RE: HELP!!! - by Xanthos - 04-17-2012, 01:00 AM
RE: HELP!!! - by Putmalk - 04-17-2012, 01:02 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 01:08 AM
RE: HELP!!! - by Putmalk - 04-17-2012, 01:11 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 01:13 AM
RE: HELP!!! - by Putmalk - 04-17-2012, 01:14 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 01:18 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 01:28 AM
RE: HELP!!! - by Putmalk - 04-17-2012, 01:27 AM
RE: HELP!!! - by Putmalk - 04-17-2012, 01:33 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 01:39 AM
RE: HELP!!! - by Putmalk - 04-17-2012, 01:45 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 01:46 AM
RE: HELP!!! - by Putmalk - 04-17-2012, 02:02 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 02:05 AM
RE: HELP!!! - by Putmalk - 04-17-2012, 02:15 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 02:23 AM
RE: HELP!!! - by Putmalk - 04-17-2012, 03:00 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 03:54 AM
RE: HELP!!! - by Putmalk - 04-17-2012, 04:05 AM
RE: HELP!!! - by JPPSJ - 04-17-2012, 04:14 AM
RE: HELP!!! - by Putmalk - 04-18-2012, 02:16 AM
RE: HELP!!! - by jessehmusic - 04-18-2012, 12:23 PM



Users browsing this thread: 1 Guest(s)