(11-13-2010, 03:30 PM)Akumasama Wrote: So the function that you create with one of the functions in the list, has a standard syntax?
(string &in asParent, string &in asChild, int alState)
If so, then I think I'm beginning to understand how this scripting works alot better.
Also, you don't particularly need the onEnter, onStart and onLeave.
You only put those in when you want something to happen at start, enter area or leave area.
Close - You need OnEnter, OnStart and OnLeave for the map to load up in the first place :p
Or OnEnter at least, as its the default initialiser.
Im just going to actually write a hypothetical script using the previously mentioned basis to ensure we're on the same page
void OnStart()
{
AddEntityCollideCallback("Player", "Origin", "scareactivate", true, 1);
}
void scareactivate(string &in asParent, string &in asChild, int alState)
{
void ChangeMap("Map2", "Player_Start_Area_1", "", "");
}
Thats purely an example, and wouldnt work unless you had a map named Map2, and a spawn called Player_Start_Area_1
Best of luck, feel free to post or PM any further questions