Frictional Games Forum (read-only)
how can i repeat teleports? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: how can i repeat teleports? (/thread-22249.html)



how can i repeat teleports? - EnemyAC130 - 07-27-2013

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)


RE: how can i repeat teleports? - Artyom - 07-27-2013

use this instead AddEntityCollideCallback ("Player" , "FALL" , "Teleportdrausen" , false , 1);


RE: how can i repeat teleports? - EnemyAC130 - 07-27-2013

Nice its work, thank you for your help ^^


RE: how can i repeat teleports? - Artyom - 07-27-2013

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