Bully-Board

Bully Modding Section => Modding Questions/Help => Topic started by: Zerror on September 10, 2020, 11:32:13 PM

Title: Lua help?
Post by: Zerror on September 10, 2020, 11:32:13 PM
I wanted to know how the PedSetDamageGivenMultiplier code works
Title: Re: Lua help?
Post by: SimonBestia on September 12, 2020, 03:37:24 PM
PedSetDamageGivenMultiplier(ped, DamageTypeID, Amount)

Example:

Code: [Select]
PedSetDamageGivenMultiplier(gPlayer, 2, 3)
This multiplies Jimmy's melee damage by 3x.

0 is projectile damage.
1 I don't know.
Title: Re: Lua help?
Post by: Zerror on September 12, 2020, 09:15:33 PM
But this works on free roam? I tried this code

PedSetDamageGivenMultiplier(Damon, 2, 2.00)

and Damon's damage remains the same
Title: Re: Lua help?
Post by: SimonBestia on September 13, 2020, 04:00:15 AM
Just to be clear, the code works on a ped you've already created named Damon, not on every Damon that the game will spawn.
Also there's no need to type 2.00 when you can just type 2, unless you want to specify decimals.
Title: Re: Lua help?
Post by: Zerror on September 13, 2020, 03:33:15 PM
uh ok thanks SimonBestia