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
Reset Triggers Upon Death?
W10607059 Offline
Junior Member

Posts: 11
Threads: 3
Joined: Feb 2012
Reputation: 0
#7
RE: Reset Triggers Upon Death?

(04-07-2012, 11:34 PM)Mackiiboy Wrote:
(04-07-2012, 11:05 PM)W10607059 Wrote: Alright, can you give me an example with the asCallback part? I have no idea what Im doing
.void OnStart()
{
AddEntityCollideCallback("Player", "YOUR_AREA", "YOUR_FUNC", false/true, 1);
}

void YOUR_FUNC(string &in asParent, string &in asChild, int alState)
{
CheckPoint("name_of_your_checkpoint", "Spawn_Area", "DeathFunc1", "DeathHint", "DescriptionOne");
}

void DeathFunc1(string &in asName, int alCount) <---- (You must use this callback syntax)
{
//Write everything here you want to happen after death.
}

-------------------------------------------------
name_of_your_checkpoint- the internal name
Spawn_Area- the name of the StartPos in the editor
DeathFunc1 - the function to call when the player dies/respawns
DeathHint- the category of the death hint message to be used in the .lang file
DescriptionOne- the entry in the .lang file (what text do you want to appear when you die?)
Alright lets see if I can knock this out with one more question. So I have all my triggers set up in the OnStart section. If I want everything to reset upon death, do I just copy it over into the checkpoint place? And if so, do I delete it out of the onstart or copy it so that there are 2 sets of the same triggers; one in the onstart and one in the checkpoint?

04-07-2012, 11:47 PM
Find


Messages In This Thread
Reset Triggers Upon Death? - by W10607059 - 04-07-2012, 01:50 AM
RE: Reset Triggers Upon Death? - by Statyk - 04-07-2012, 02:01 AM
RE: Reset Triggers Upon Death? - by W10607059 - 04-07-2012, 09:45 PM
RE: Reset Triggers Upon Death? - by Mackiiboy - 04-07-2012, 10:24 PM
RE: Reset Triggers Upon Death? - by W10607059 - 04-07-2012, 11:05 PM
RE: Reset Triggers Upon Death? - by Mackiiboy - 04-07-2012, 11:34 PM
RE: Reset Triggers Upon Death? - by W10607059 - 04-07-2012, 11:47 PM
RE: Reset Triggers Upon Death? - by Mackiiboy - 04-08-2012, 12:01 AM
RE: Reset Triggers Upon Death? - by W10607059 - 04-08-2012, 03:39 AM
RE: Reset Triggers Upon Death? - by JetlinerX - 04-08-2012, 08:50 PM
RE: Reset Triggers Upon Death? - by W10607059 - 04-08-2012, 10:50 PM
RE: Reset Triggers Upon Death? - by Mackiiboy - 04-09-2012, 12:08 AM
RE: Reset Triggers Upon Death? - by W10607059 - 04-09-2012, 06:12 PM



Users browsing this thread: 3 Guest(s)