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?
Mackiiboy Offline
Member

Posts: 101
Threads: 7
Joined: Jan 2012
Reputation: 11
#8
RE: Reset Triggers Upon Death?

(04-07-2012, 11:47 PM)W10607059 Wrote: 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?
.
My head is kinda messy, I do not really understand what you're meaning - but. I updated my last post, and the thing it does now is the following:
You enter YOUR_AREA => calls YOUR_FUNC and a CheckPoint appears and YOUR_AREA becomes inactive. If you die, DeathFunc1 will be called, and YOUR_AREA will be active again after death, which means you will be able to collide with that area again and again till' you manage to not die anymore. That's exactly what you wanted:

"How do you make it so that when the player dies, the triggers will all
be reset. Like say I had an area where a monster comes when the player
enters. He enters and then dies. How do I make it so that when he
respawns and enters the area again, the monster will appear again?"


So, just put in your monsterstuff into YOUR_FUNC - that func will be called when you collide with YOUR_AREA and can be called and infinite number of times depending on how many times you want to die.
This works if you have false active in your collidecallbackfunc:
AddEntityCollideCallback("Player", "YOUR_AREA", "YOUR_FUNC", false, 1);

Do not forget to add a new CheckPoint in the future if it's possible to get killed by other monsters in your custom story.

(This post was last modified: 04-08-2012, 12:06 AM by Mackiiboy.)
04-08-2012, 12:01 AM
Website 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: 1 Guest(s)