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
Need help please!
TheDavenia Offline
Member

Posts: 223
Threads: 38
Joined: Jun 2011
Reputation: 0
#1
Need help please!

How do I make it that if you die you respawn in another map?
Please help!

Current Project: Nightmare's End(Project Director, Scripter, boss >:D)
(This post was last modified: 11-06-2011, 01:32 AM by TheDavenia.)
11-05-2011, 02:30 PM
Find
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#2
RE: Need help please!

Dont have to post it twice. And im not sure.

Rep if like me or im helpful or you love my stories!
Stephanos house
11-05-2011, 03:05 PM
Find
MrErkky Offline
Junior Member

Posts: 28
Threads: 3
Joined: Nov 2011
Reputation: 5
#3
RE: Need help please!

(11-05-2011, 02:30 PM)TheDavenia Wrote: How do I make it that if you die you respawn in another map?
Please help!

just set a checkpoint like this before the player dies:

{
CheckPoint("", "PlayerStartArea_2", "MapChange", "Hints", "Death");
}
void MapChange(string &in asName, int alCount)
{
ChangeMap("Cellar", "PlayerStartArea_2", "", "");
}

The player respawn in the map here named cellar. It worked for me, but there might be other better ways to do this. I'm kind of new to this Wink

(This post was last modified: 11-05-2011, 04:03 PM by MrErkky.)
11-05-2011, 04:02 PM
Find
TheDavenia Offline
Member

Posts: 223
Threads: 38
Joined: Jun 2011
Reputation: 0
#4
RE: Need help please!

(11-05-2011, 04:02 PM)MrErkky Wrote:
(11-05-2011, 02:30 PM)TheDavenia Wrote: How do I make it that if you die you respawn in another map?
Please help!

just set a checkpoint like this before the player dies:

{
CheckPoint("", "PlayerStartArea_2", "MapChange", "Hints", "Death");
}
void MapChange(string &in asName, int alCount)
{
ChangeMap("Cellar", "PlayerStartArea_2", "", "");
}

The player respawn in the map here named cellar. It worked for me, but there might be other better ways to do this. I'm kind of new to this Wink
Worked!
Thanks.


Current Project: Nightmare's End(Project Director, Scripter, boss >:D)
11-05-2011, 06:10 PM
Find




Users browsing this thread: 3 Guest(s)