Bully-Board
Bully Modding Section => Modding Questions/Help => Topic started by: Zerror on September 10, 2020, 11:32:13 PM
-
I wanted to know how the PedSetDamageGivenMultiplier code works
-
PedSetDamageGivenMultiplier(ped, DamageTypeID, Amount)
Example:
PedSetDamageGivenMultiplier(gPlayer, 2, 3)
This multiplies Jimmy's melee damage by 3x.
0 is projectile damage.
1 I don't know.
-
But this works on free roam? I tried this code
PedSetDamageGivenMultiplier(Damon, 2, 2.00)
and Damon's damage remains the same
-
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.
-
uh ok thanks SimonBestia