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
Script Help Quit/Reset on Death
shmuckdom Offline
Junior Member

Posts: 8
Threads: 5
Joined: Mar 2011
Reputation: 0
#1
Exclamation  Quit/Reset on Death

Hey guys got to make this nice and short, so in my intro there is a short monster chase and if you die and respawn back to the start, all in all, the whole introduction to the story is glitched. So, I would like to make it that if you are killed by this grunt, you either A, force quit the game (like in Justine, or purposely making a script error) or B, resetting the map completely on respawn.

I would just like to know how to do this, THANK YOU!

-DoM
03-10-2012, 05:15 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Quit/Reset on Death

ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);

asMapName - the file to load
asStartPos - the name of the StartPos on the next map
asStartSound - the sound that is played when the change starts
asEndSound - the sound that is played when the new map is loaded

(This post was last modified: 03-10-2012, 06:07 AM by flamez3.)
03-10-2012, 06:07 AM
Find
UnseenLegend ( NL ) Offline
Member

Posts: 171
Threads: 10
Joined: Sep 2011
Reputation: 12
#3
RE: Quit/Reset on Death

I'm afraid that's not possible but you can create a check point
Like if you walk over the area trigger and the next thing, a grunt killed you.
You will respawn at that area you walked over.
If you add a playerstart on area type

[Image: read-image.asp?n=n-20121202110321-m.jpg&r=8]
(This post was last modified: 03-10-2012, 10:01 PM by UnseenLegend ( NL ).)
03-10-2012, 10:00 PM
Find




Users browsing this thread: 2 Guest(s)