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.
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


Messages In This Thread
Kill-Player Area. - by MaZiCUT - 06-22-2012, 05:45 PM
RE: Kill-Player Area. - by Cruzore - 06-22-2012, 05:55 PM



Users browsing this thread: 1 Guest(s)