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
Give yourself damage the damage
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#6
RE: Give yourself damage the damage

are you sure you're using either

SetPlayerHealth(0.0f);?
AddPlayerHealth(-100.0f);?

Either of these scripts will instantly kill the player as long as their health is not raised above 100

Edit: Of course, if you want effects to be played when you are injured/killed, then the functions Khyrpa suggested would be more suitable Smile But the one's I've posted should be good enough for now.

(This post was last modified: 10-05-2011, 09:08 PM by DRedshot.)
10-05-2011, 08:54 PM
Find


Messages In This Thread
Give yourself damage the damage - by neocrawler - 10-05-2011, 06:40 PM
RE: Give yourself damage the damage - by Khyrpa - 10-05-2011, 06:46 PM
RE: Give yourself damage the damage - by Elven - 10-05-2011, 07:29 PM
RE: Give yourself damage the damage - by Khyrpa - 10-05-2011, 08:53 PM
RE: Give yourself damage the damage - by DRedshot - 10-05-2011, 08:54 PM



Users browsing this thread: 1 Guest(s)