Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 4 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make something happen at death?
Stangi Offline
Junior Member

Posts: 25
Threads: 3
Joined: Oct 2010
Reputation: 0
#1
Make something happen at death?

Is it possible to make something happen at death? I can't find a function that can do anything like that...
Thanks Smile
11-19-2010, 09:15 PM
Find
Frontcannon Offline
Senior Member

Posts: 538
Threads: 10
Joined: Jul 2010
Reputation: 2
#2
RE: Make something happen at death?

There is a function for the Player Spawn, but I don't think it's useful here.

Is it a certain, triggered death or just a 'regular' one? You could work with a function that triggers that once the player's health reaches 0, but you need to work with variables there..

Maybe Frictional has some documentation on it in their .hps files, as they change monster spawns and the like once you die..

Maybe a CollideArea at the place where the player spawns?


╔═════════════════╗
☺ Smoke weed everyday ☺
╚═════════════════╝
11-19-2010, 09:47 PM
Find
house Offline
Member

Posts: 195
Threads: 11
Joined: Oct 2010
Reputation: 1
#3
RE: Make something happen at death?

This is what you need:
CheckPoint(string& asName,string& asStartPos ,string& asCallback, string &asDeathHintCat, string &asDeathHintEntry);

string& asName: Name you want to give this checkpoint. (Doesn't really matter)

string& asStartPos: Where the player spawns after death. (Use Playerstarts for spawns. You can use more than one playerstart in a level)

string& asCallback: What should happen when you die. (This is what you need)

string &asDeathHintCat: The category the death hint is in. (Found in extra_english.lang)

string&asDeathHintEntry: The name of the entry of the death hint (Found in extra_english.lang)
(This post was last modified: 11-20-2010, 06:59 PM by house.)
11-20-2010, 06:48 PM
Find
Stangi Offline
Junior Member

Posts: 25
Threads: 3
Joined: Oct 2010
Reputation: 0
#4
RE: Make something happen at death?

Thanks guys, as soon as get some time I will look into it.
11-20-2010, 09:06 PM
Find




Users browsing this thread: 1 Guest(s)