Frictional Games Forum (read-only)
[LVL ED] i need help in making a level - 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: [LVL ED] i need help in making a level (/thread-17185.html)



i need help in making a level - maitalr - 07-22-2012

How i can make a script or something: when my character going up the stairs he will not stay in the same zone he will vanish in a different zone in the map editor but it will look like its a continue of the map, like hes in the second floor?

here a picture to demonstrate:
[Image: index.php?loc=see&pic=php1lO9HL.png]
http://www.myg.co.il/index.php?loc=see&pic=php1lO9HL.png

I hope u understood what i meant.


RE: i need help in making a level - zecuro - 07-22-2012

not really clear do you mean like teleport or


RE: i need help in making a level - maitalr - 07-22-2012

yep and when he will go back down the stairs he will go back in the first floor back. cuz i dont want to use a door 4 that.
cuz when i have problem with the calling so i rather doing that. i know its possibly cuz when i played custom stores were few who did that.


RE: i need help in making a level - JMFStorm - 07-22-2012

(07-22-2012, 12:50 PM)maitalr Wrote: How i can make a script or something:
You have to use "AddEntityCollideCallback" and "TeleportPlayer" commands to make the script you need. But I wont explain this any further myself cuz I know it's a nightmare to try and explain scripting to a completely new user.


RE: i need help in making a level - maitalr - 07-22-2012

so i also need a script for that?


RE: i need help in making a level - Cruzore - 07-22-2012

http://wiki.frictionalgames.com/hpl2/amnesia/script_functions
In that page are all functions you will probably ever need. Also, everything else you need is in that wiki. Watch tutorials, look at scripts of other custom stories and learn scripting.
Also: You first asked for a script, then asked if you also need a script? What?


RE: i need help in making a level - maitalr - 07-22-2012

ok ill try that, but i want the specific script that i need to do that
he said that i need
"AddEntityCollideCallback" and "TeleportPlayer" so is that it?:

void AddEntityCollideCallback(string& asParentName, string& asChildName, string& asFunction, bool abDeleteOnCollide, int alStates);

void TeleportPlayer(string& asStartPosName);


ill look that up. if i will need help ,i will post that in here




(and i was confused, never mind..)


RE: i need help in making a level - zecuro - 07-22-2012

i read something about that
i think it should look like this
void CollidePlayerTeleport(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer(teleport_name);
// Optional fading effects to make a better teleporting transition.
FadeOut(0);
FadeIn(20);
}

(07-22-2012, 04:12 PM)maitalr Wrote: ok ill try that, but i want the specific script that i need to do that
he said that i need
"AddEntityCollideCallback" and "TeleportPlayer" so is that it?:

void AddEntityCollideCallback(string& asParentName, string& asChildName, string& asFunction, bool abDeleteOnCollide, int alStates);

void TeleportPlayer(string& asStartPosName);


ill look that up. if i will need help ,i will post that in here




(and i was confused, never mind..)