04-02-2011, 10:16 PM
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:
So remember, everything (for this scripting language in this game) has to be in a function.
Code:
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.