News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: How to add damage  (Read 1939 times)

0 Members and 1 Guest are viewing this topic.

Offline AfterLife

  • The Reaper
  • Sr. Member
  • ***
  • Posts: 830
  • Gender: Male
  • I'm from the AfterLife...
    • View Profile
How to add damage
« on: March 01, 2015, 05:40:30 AM »
How do I add damage to stuff like Damon Leg Throw or increase the damage dealt in Darby's 6 Hit Combo etc?

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: How to add damage
« Reply #1 on: March 01, 2015, 08:43:14 PM »
Make it so when the last ped you hit is playing the receive animation for the attack, they get their health deducted.

Offline Unknownsoldier

  • Hero Member
  • ****
  • Posts: 2,773
    • View Profile
Re: How to add damage
« Reply #2 on: March 01, 2015, 09:35:43 PM »
   if (blah blah) then
         PedSetHealth(Ped, PedGetHealth(Ped) - <how much health loss>)
   end