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


Poll: Which would you prefer?
You do not have permission to vote in this poll.
Number 1
100.00%
1 100.00%
Number 2
0%
0 0%
Total 1 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OnDeath or another function?
Juby Away
Senior Member

Posts: 290
Threads: 2
Joined: May 2011
Reputation: 5
#7
RE: OnDeath or another function?

The "OnDeath" function as you call it, is already in the game.

CheckPoint("Death", "PlayerStartArea_RS", "CPCall01", "DeathHintCategory", "DeathHintEntry");

Use this command whenever.

void CPCall01(string &in asName, int alCount)
   {
      Stuff to do !
   }
This is the function that gets called. asName is the name of the the first parameter in CheckPoint(); int alCount is the number of times a player has died, so you could write something like this...

void CPCall01(string &in asName, int alCount)
{
      if(asName == "Death") {
          if(alCount == 1) { Stuff }
   }
}

Insanity. Static.
(This post was last modified: 08-29-2011, 03:04 PM by Juby.)
08-29-2011, 03:03 PM
Find


Messages In This Thread
OnDeath or another function? - by Mr. Bombastic - 08-29-2011, 09:54 AM
RE: I need your oppinion! - by Your Computer - 08-29-2011, 10:14 AM
RE: I need your oppinion! - by Mr. Bombastic - 08-29-2011, 10:29 AM
RE: I need your oppinion! - by Khyrpa - 08-29-2011, 11:26 AM
RE: I need your oppinion! - by Acies - 08-29-2011, 11:37 AM
RE: I need your oppinion! - by Mr. Bombastic - 08-29-2011, 02:42 PM
RE: OnDeath or another function? - by Juby - 08-29-2011, 03:03 PM
RE: OnDeath or another function? - by MegaScience - 08-29-2011, 03:09 PM



Users browsing this thread: 1 Guest(s)