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
Kill Player
IGabx Offline
Junior Member

Posts: 10
Threads: 3
Joined: Aug 2012
Reputation: 0
#1
Kill Player

I wanna make an intro where the player walks through a hallway to a door, then the screen fades out, there's a door breaking sound followed by a grunt sound, then the player dies with the phrase "Welcome to The Beginning".
I already got the player walking part, and sort of the death phrase, but is there a script to kill the player, or do I actually need to spawn a grunt?
10-19-2012, 04:02 AM
Find
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#2
RE: Kill Player

GivePlayerDamage(100, "slash", true, true);

Hopefully that'll do it.

[Image: mZiYnxe.png]


(This post was last modified: 10-19-2012, 04:06 AM by Acies.)
10-19-2012, 04:06 AM
Find
IGabx Offline
Junior Member

Posts: 10
Threads: 3
Joined: Aug 2012
Reputation: 0
#3
RE: Kill Player

Ahh thanks a bunch. I forgot about that script, it's been a while since i've used it. Big Grin
10-19-2012, 04:15 AM
Find
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#4
RE: Kill Player

Also make sure to use a Check point right away so that you can display the proper death message.

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

Sets a checkpoint at which the player will respawn in case he dies.
Callback syntax: void MyFunc(string &in asName, int alCount)
Count is 0 on the first checkpoint load!

asName - the internal name
asStartPos - the name of the StartPos in the editor
asCallback - the function to call when the player dies/respawns
asDeathHintCat - the category of the death hint message to be used in the .lang file
asDeathHintEntry - the entry in the .lang file

(This post was last modified: 10-19-2012, 04:43 AM by Damascus.)
10-19-2012, 04:43 AM
Find
IGabx Offline
Junior Member

Posts: 10
Threads: 3
Joined: Aug 2012
Reputation: 0
#5
RE: Kill Player

Ahh yes I remember death checkpoints. Anyways, thanks for the help. Big Grin
10-19-2012, 05:13 AM
Find




Users browsing this thread: 1 Guest(s)