Zombies bloody ped

help
ped
zombie

#1

Good time of day, guys. There was a question, how to make a ped bloody? Zombies without blood - not zombies)


#2

Take a look at this.
http://runtime.fivem.net/doc/reference.html#_0x83F7E01C7B769A26


#3

Can you please, more in detail) How to use this function?


#4

Syntax:

ApplyPedBlood(Ped ped, int boneIndex, float xRot, float yRot, float zRot, char* woundType)

Reference example:

PED::APPLY_PED_BLOOD(l_4B, 3, 0.0, 0.0, 0.0, "wound_sheet");

Using lua it’d be something like this:

ApplyPedBlood(ped, 3, 0.0, 0.0, 0.0, "wound_sheet")

#5

ApplyPedBlood(ped, 3, 0.0, 0.0, 0.0, “wound_sheet”) does not give anything :frowning:


#6

Did you specify a valid ped?


#7

GetPlayerPed(-1) enough valid ped?


#8

should be yeah. not sure what’s wrong. Never used the native myself.


#9

I had the idea of spawning the pedes high above the ground, and then revive them after the fall, but they hang in the air…

Not a very good way, especially if there is a native way


#10

Working)

ApplyPedDamagePack(GetPlayerPed(-1), "Fall", 100, 100);


#11

How can I add this to the code i have below?

https://mega.nz/#!BfonxSBC!ScSUm58fPTHcaF04MiYJNjWcxHeGvOebnVb3KB1ptX8


#12

just paste it into line 79:

ApplyPedDamagePack(ped, "Fall", 100, 100)

#13

Thank you! (post must be 20 characters)


#14

Are there any other Ped Damage packs besides “Fall”?