Teleport Problem - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Teleport Problem (/thread-8221.html) |
Teleport Problem - laser50 - 05-24-2011 hey guys, since my previous works on a custom story got corrupted in a Crash, I decided to make a new Story. Now scarier as Ever! BUT. I came onto a problem with teleporting. here is my code: Code: void OnStart() RE: Teleport Problem - Tanshaydar - 05-24-2011 void TeleportDream1(string &in asParent, string &in asChild, string &in asTimer, int alState) What the? What is that asTimer in there? Should be: void TeleportDream1(string &in asParent, string &in asChild, int alState) RE: Teleport Problem - laser50 - 05-25-2011 Sorry, I get mixed in some codes at some moments. But it works now! Thanks RE: Teleport Problem - Kyle - 05-25-2011 Naturally, I don't think you need to carry over the string &in asParent, string &in asChild, and the int alState for function TeleportPlayer. Try this: void TeleportPlayer(string &in asTimer) RE: Teleport Problem - laser50 - 05-25-2011 (05-25-2011, 12:15 PM)Kyle Wrote: Naturally, I don't think you need to carry over the string &in asParent, string &in asChild, and the int alState for function TeleportPlayer. Thanks,but since Tanshaydar's code worked. I removed the timer so it would be a instant teleport. |