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
totally clueless
Mackiiboy Offline
Member

Posts: 101
Threads: 7
Joined: Jan 2012
Reputation: 11
#6
RE: totally clueless

Basically, you do not have to script it at all. Everything can be done with the Level Editor.
Press the entitytab on your leveldoor and scroll down till' StartPos and MapFile. Write newarea in StartPos and 02.map in in the MapFilebox, and it will work.

[Image: piQTf.png]

If you want to script it, put a SetEntityPlayerInteractCallback("NameOfYourLevelDoor", "MapChangeFunc", false); inside the start function, and use this as the callback function:
void MapChangeFunc(string &in entity)
{
ChangeMap("02.map", "newarea", "", "");
}
(07-29-2012, 12:24 AM)Soverain Wrote: So it would be like this? void ChangeMap("02.map", "newarea", "", "");

how can i script the door to activate the transition? I have the level transition door but nothing happens when click it
(This post was last modified: 07-29-2012, 12:47 AM by Mackiiboy.)
07-29-2012, 12:43 AM
Website Find


Messages In This Thread
totally clueless - by Soverain - 07-28-2012, 11:55 PM
RE: totally clueless - by FlawlessHappiness - 07-29-2012, 12:00 AM
RE: totally clueless - by Soverain - 07-29-2012, 12:12 AM
RE: totally clueless - by SilentStriker - 07-29-2012, 12:16 AM
RE: totally clueless - by Soverain - 07-29-2012, 12:24 AM
RE: totally clueless - by Mackiiboy - 07-29-2012, 12:43 AM
RE: totally clueless - by Soverain - 07-29-2012, 12:58 AM



Users browsing this thread: 1 Guest(s)