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 Area.
MaZiCUT Offline
Senior Member

Posts: 536
Threads: 31
Joined: Jun 2012
Reputation: 17
#1
Kill-Player Area.

void OnStart()
{
AddEntityPlayerCollideCallback blablabla player killarea killscript
}

void KillScript()
{
I don't know how to make this part :]
}




Please help me out Smile

I want the player to die when he collides with a special area.

Hi.
(This post was last modified: 06-22-2012, 11:04 PM by MaZiCUT.)
06-22-2012, 05:45 PM
Website Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#2
RE: Kill-Player Area.

If you want to get the player to die often, use the below script. If he should die only once, change under AddEntityCollideCallback the false to true.
void OnStart()
{
AddEntityCollideCallback("Killareanamehere", "Player", "KillScript", false, 1);
}
void KillScript(string &in asParent, string &in asChild, int alState)
{
SetPlayerHealth(0.0f);
}
(This post was last modified: 06-22-2012, 05:56 PM by Cruzore.)
06-22-2012, 05:55 PM
Find




Users browsing this thread: 1 Guest(s)