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
Level changing area script not working?
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#11
RE: Level changing area script not working?

Do you know what I mean by a function? A function performs a set number of tasks, and all the code it does is enclosed in { and }. Each function declaration starts with void (in general for this game), followed by the function name, which would be ChangeMap for this one, and then the parameters, which would be the parameters of the entitycollide you put. So the function would be:
void Changemap(string &in asParent, string &in asChild, int alStates)
{
   ChangeMap blahblah your changemap thing here;
}

So remember, everything (for this scripting language in this game) has to be in a function.
(This post was last modified: 04-02-2011, 10:20 PM by MrBigzy.)
04-02-2011, 10:16 PM
Find


Messages In This Thread
RE: Level changing area script not working? - by MrBigzy - 04-02-2011, 10:16 PM



Users browsing this thread: 1 Guest(s)