Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Level Editor Help i need help in making a level
maitalr Offline
Junior Member

Posts: 16
Threads: 3
Joined: May 2012
Reputation: 0
#1
i need help in making a level

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.
07-22-2012, 12:50 PM
Find
zecuro Offline
Member

Posts: 162
Threads: 33
Joined: Jul 2011
Reputation: 3
#2
RE: i need help in making a level

not really clear do you mean like teleport or
07-22-2012, 12:59 PM
Find
maitalr Offline
Junior Member

Posts: 16
Threads: 3
Joined: May 2012
Reputation: 0
#3
RE: i need help in making a level

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, 02:05 PM
Find
JMFStorm Offline
Member

Posts: 205
Threads: 8
Joined: Aug 2011
Reputation: 28
#4
RE: i need help in making a level

(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.

07-22-2012, 02:27 PM
Find
maitalr Offline
Junior Member

Posts: 16
Threads: 3
Joined: May 2012
Reputation: 0
#5
RE: i need help in making a level

so i also need a script for that?
07-22-2012, 02:54 PM
Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#6
RE: i need help in making a level

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?

Think, before you speak Google, before you post
07-22-2012, 02:59 PM
Find
maitalr Offline
Junior Member

Posts: 16
Threads: 3
Joined: May 2012
Reputation: 0
#7
RE: i need help in making a level

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..)
07-22-2012, 04:12 PM
Find
zecuro Offline
Member

Posts: 162
Threads: 33
Joined: Jul 2011
Reputation: 3
#8
RE: i need help in making a level

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..)
07-22-2012, 06:30 PM
Find




Users browsing this thread: 1 Guest(s)