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
GivePlayerDamage help and some explanation please!
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#4
RE: GivePlayerDamage help and some explanation please!

GivePlayerDamage(float afAmount, string& asType, bool abSpinHead, bool abLethal);
afAmount = the amount of damage done to the player; the player's health is 100

asType = the screen + sound effect that will accompany the damage
abSpinHead = with the player's screen suddenly jerk to one side when the damage is recieved?
abLethal = regardless of the damage, will this kill the player?


Example:

GivePlayerDamage(30.0f, "Claws", true, false);

It will inflict 30 damage to the player, display 3 diagonal red slashes across the screen, the player's head will jerk to one side, and it will not kill the player.

I rate it 3 memes.
(This post was last modified: 08-21-2012, 08:23 PM by Adny.)
08-21-2012, 08:22 PM
Find


Messages In This Thread
RE: GivePlayerDamage help and some explanation please! - by Adny - 08-21-2012, 08:22 PM



Users browsing this thread: 1 Guest(s)