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
switch map after death ?
sassix Offline
Member

Posts: 56
Threads: 13
Joined: Jan 2011
Reputation: 0
#1
switch map after death ?

hey, is there a way to switch the map after death ?
at the end of my map enemys killing me but instead of being dead i wanna swap the map cuz the first map is just a dream.


Quote:void Collide_Area(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_2" , true);
SetEntityActive("servant_grunt_1" , true);
SetEntityActive("servant_brute_1" , true);
FadeIn(20);
}

this is the end of my first map script, it should be fade out after enemy killed me and loading the next map.
01-09-2011, 09:34 PM
Find
TheLittleGarfield Offline
Member

Posts: 120
Threads: 2
Joined: Dec 2009
Reputation: 0
#2
RE: switch map after death ?

Use the script from near the end of the game, when you get captured by two brutes.

Meh...
01-09-2011, 09:38 PM
Find
sassix Offline
Member

Posts: 56
Threads: 13
Joined: Jan 2011
Reputation: 0
#3
RE: switch map after death ?

(01-09-2011, 09:38 PM)TheLittleGarfield Wrote: Use the script from near the end of the game, when you get captured by two brutes.
y sry i asked the wrong question, i want them to kill me first, it should load the map AFTER im gettin down, not while theyre appear

Quote:void Collide_Area(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_2" , true);
SetEntityActive("servant_grunt_1" , true);
SetEntityActive("servant_brute_1" , true);
FadeIn(20);
"bla bla player is dead script" then change map
ChangeMap("Castle Enter.map", "PlayerSpawn1", "", "");
}

thats what i mean Tongue
01-09-2011, 09:44 PM
Find
DIGI Byte Offline
Senior Member

Posts: 376
Threads: 20
Joined: Dec 2010
Reputation: 1
#4
RE: switch map after death ?

actually they don't kill you in the original script, they fake it.
copy what they did, but have it detect the players health
and when its lower then 1, change maps and set the health too 60
01-10-2011, 09:45 AM
Find
sassix Offline
Member

Posts: 56
Threads: 13
Joined: Jan 2011
Reputation: 0
#5
RE: switch map after death ?

(01-10-2011, 09:45 AM)DIGI Byte Wrote: actually they don't kill you in the original script, they fake it.
copy what they did, but have it detect the players health
and when its lower then 1, change maps and set the health too 60

sry i dont understand the last 2 rows :S
and what do u mean with " they fake it in this script" ?
01-10-2011, 03:38 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#6
RE: switch map after death ?

basically Player didn't really die. They scripted it as like he died ^^.

Edit: // Ouch, I dug old thread up xD. I guess I was searching for help and then when later came I was "Oh, that dude needs help" Tongue. My mistake.

The Interrogation
Chapter 1

My tutorials
(This post was last modified: 08-22-2011, 07:25 PM by Elven.)
08-22-2011, 06:53 PM
Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#7
RE: switch map after death ?

Could this be valid?

//Parameters can be whatever triggers the checkpoint. This one is from a "AddEntityCollideCallback".
void Example(string &in asParent, string &in asChild, int alState)
{
CheckPoint("ExampleInternalName","ExampleStartPos", "ExampleScriptCallback", "Hints", "Example_CheckPoint");
}

void CheckPoint1Script(string &in asName, int alCount)
{
ChangeMap("Example.map", "ExampleStartPos", "", "");
}
08-22-2011, 11:47 PM
Find




Users browsing this thread: 1 Guest(s)