Frictional Games Forum (read-only)

Full Version: i need help in making a level
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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&p...1lO9HL.png

I hope u understood what i meant.
not really clear do you mean like teleport or
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.
(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.
so i also need a script for that?
http://wiki.frictionalgames.com/hpl2/amn..._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?
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..)
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..)