Frictional Games Forum (read-only)

Full Version: how can i repeat teleports?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My question is how can you repeat a teleport? My problem is that the teleport only works once but I want him to always teleport.

My Script:

AddEntityCollideCallback ("Player" , "FALL" , "Teleportdrausen" , true , 1);
}

void Teleportdrausen (string &in asParent, string &in asChild, int alState)
{
FadeRadialBlurTo (25, 0.0f);
FadeOut(0); //Instant black screen
ChangeMap ("map1.map", "teleport", "", "");
AddTimer ("", 3, "intro1");
}

(Sorry for my bad english Big Grin)
use this instead AddEntityCollideCallback ("Player" , "FALL" , "Teleportdrausen" , false , 1);
Nice its work, thank you for your help ^^
No problems! The boolean decides whether the callback should be removed or not so setting it to false will tell the program to not remove it