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 Need some help restarting map!
TexMex Offline
Junior Member

Posts: 2
Threads: 1
Joined: Mar 2013
Reputation: 0
#1
Information  Need some help restarting map!

Hey, I need some help with my story, or the scripting for my story. The problem is that i need the map to restart when the player dies but i cant figure out how to do this, i tried to put a checkpoint in the beginning of the story but then the player already had the knife (after he died) that was supposed to teleport him when he picked it up.

So do anyone know how to restart the map when the player dies?

Thanks for all help
03-22-2013, 09:14 PM
Find
Wapez Offline
Senior Member

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#2
RE: Need some help restarting map!

I'd say you end the story completely, and the Player has to restart it the same way they did the first time they started it.

PHP Code: (Select All)
void StartCredits(stringasMusicbool abLoopMusicstringasTextCatstringasTextEntryint alEndNum); 

http://wiki.frictionalgames.com/hpl2/amn..._functions

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
03-22-2013, 10:29 PM
Find
ingedoom Offline
Member

Posts: 120
Threads: 12
Joined: Feb 2012
Reputation: 0
#3
RE: Need some help restarting map!

(03-22-2013, 09:14 PM)TexMex Wrote: Hey, I need some help with my story, or the scripting for my story. The problem is that i need the map to restart when the player dies but i cant figure out how to do this, i tried to put a checkpoint in the beginning of the story but then the player already had the knife (after he died) that was supposed to teleport him when he picked it up.

So do anyone know how to restart the map when the player dies?

Thanks for all help

I don't know how exactly your story evolves, but you need some trigger to restart the story. For example a collide callback, that will make the script restart. If you can follow me? Any trigger will do. There is no function like Restart(), you have to use the engine script to reset it all as it was at the beginning. It all depends on what your story's content is.

[Image: 23778.png]
03-23-2013, 05:19 AM
Website Find
TexMex Offline
Junior Member

Posts: 2
Threads: 1
Joined: Mar 2013
Reputation: 0
#4
RE: Need some help restarting map!

Hey, i wont end my story completely because then the player will start from the beginning of the story and not just the map, right?

How do i use the engine script to reset it all? And is it any function that makes me decide what happens when the player die? Then i could make him change to the same map.

Thanks for all reply
(This post was last modified: 03-23-2013, 10:58 AM by TexMex.)
03-23-2013, 10:57 AM
Find
Wapez Offline
Senior Member

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#5
RE: Need some help restarting map!

Okay, I'll help you out. Send me your map to my email and I'll see what I can do.

wapez@frunkenproductions.com

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
03-23-2013, 01:03 PM
Find




Users browsing this thread: 1 Guest(s)