Frictional Games Forum (read-only)

Full Version: Switching Levels through colliders
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have been trying to figure this out but I am trying to make a collider that loads another level so far the only thing I know is void ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);. But I need to figure out how can be triggered by the collider.
If by "collider" you mean a ScriptArea.

void OnStart()
{
AddEntityCollideCallback("Player", "nameofscriptarea", "changemap", true, 1);
}

void changemap(string &in asParent, string &in asChild, int alState)
{
ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);
}
Ohh, I understand.......things will get easier later on, anyways thanks