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
Script for Kill the player when a Grunt kills me?
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#4
RE: Script for Kill the player when a Grunt kills me?

Assuming the grunt is the only thing capable of killing the player, this will work fine. Checkpoint is similar to adding a callback under OnStart; it triggers its own function (in this case "Credits"). The first time the player dies, the function "Credits" will be used.

As for you question about the missing strings in the CheckPoint function, I'm still not 100% sure what the game needs for it to work, so here is a version of it with none of the arguments filled out:

CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);


Keep in mind it is okay to leave certain arguments blank (just leave 2 quotation marks: ""); like I said before, I'm not sure which ones are okay, so you will have to do some trial & error.

I rate it 3 memes.
09-10-2012, 12:21 AM
Find


Messages In This Thread
RE: Script for Kill the player when a Grunt kills me? - by Adny - 09-10-2012, 12:21 AM



Users browsing this thread: 1 Guest(s)