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
Leveldoor N00B
X4anco Offline
Member

Posts: 157
Threads: 66
Joined: Apr 2011
Reputation: 0
#1
Bug  Leveldoor N00B

Hello

I am trying to use a door to load next map but I don't know a playercallback (or something Tongue ) I want the player to click on door and load next map

plz could u help thx

...
05-02-2011, 11:39 AM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: Leveldoor N00B

void OnStart()
{
SetEntityPlayerInteractCallback("DoorName", "TeleportFunction", true);
}
void TeleportFunction(string &in asEntity)
{
ChangeMap("MapName", "PlayerStartArea_1", "", "");
}

That should work, ask me any questions if you need help.

05-02-2011, 11:46 AM
Find
X4anco Offline
Member

Posts: 157
Threads: 66
Joined: Apr 2011
Reputation: 0
#3
RE: Leveldoor N00B

I cant pm you

...
05-02-2011, 11:48 AM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#4
RE: Leveldoor N00B

(05-02-2011, 11:48 AM)X4anco Wrote: I cant pm you

Then just ask it on this thread... -_-

05-02-2011, 11:53 AM
Find
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#5
RE: Leveldoor N00B

Even easier:
1. Select the level door in the level editor.
2. Click the entity tab.
3. Scroll down to MapFile and click the "..." button.
4. Locate the map you want to load and hit load file.
5. It might not be necessary as the game will probably load the first one anyhow, but type the playerstart area name of the next map in the "StartPos" field.
6. Click it in-game and it should work just fine without any scripting Smile
(This post was last modified: 05-02-2011, 11:55 AM by Roenlond.)
05-02-2011, 11:54 AM
Find
X4anco Offline
Member

Posts: 157
Threads: 66
Joined: Apr 2011
Reputation: 0
#6
RE: Leveldoor N00B

Big Grin Big Grin Big Grin Big Grin
How would I get some txt to appear when a player looks at somthing?

...
(This post was last modified: 05-02-2011, 12:00 PM by X4anco.)
05-02-2011, 11:56 AM
Find




Users browsing this thread: 1 Guest(s)