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
How do you reset items after death?
GrAVit Offline
Senior Member

Posts: 580
Threads: 15
Joined: Oct 2011
Reputation: 22
#5
RE: How do you reset items after death?

(06-07-2012, 03:06 PM)Rapture Wrote: For the "CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);" --- When it calls the function on death/respawn, have it do some bool checks.

Try a "bool HasItem(string& asName);" --- If false, give the specific item you want. If they already have it, do nothing.

Hope that helps.
Yeah but I'd like the item to reset on the map, like I never even picked it up. The danger of death appears only after one picks up the key. I know how to get rid of it in the inventory aswell.

(This post was last modified: 06-07-2012, 03:09 PM by GrAVit.)
06-07-2012, 03:08 PM
Find


Messages In This Thread
How do you reset items after death? - by GrAVit - 06-07-2012, 02:36 PM
RE: How do you reset items after death? - by GrAVit - 06-07-2012, 03:08 PM



Users browsing this thread: 2 Guest(s)