Bully-Board

Bully Modding Section => Modding Questions/Help => Topic started by: mhdt on October 03, 2021, 08:14:30 PM

Title: PedIsHit problem
Post by: mhdt on October 03, 2021, 08:14:30 PM
PedIsHit is not valid for people who have been by GrappleTarget
Title: Re: PedIsHit problem
Post by: SimonBestia on October 04, 2021, 03:37:47 AM
Because it's how the game works.
When it's about grappling moves, you're pretty much just watching animations with properties at a certain time (playing sounds, applying damage, etc).
Not much you can do with it on Lua.

deadpoolXYZ explained this to me.
Title: Re: PedIsHit problem
Post by: mhdt on October 04, 2021, 05:51:24 AM
I mean, hitting the ped with a fist would trigger pedishit, but hitting the ped with the same fist after I grabbed it would not trigger pedishit
Title: Re: PedIsHit problem
Post by: SimonBestia on October 04, 2021, 08:42:18 AM
I know what you mean and I already explained why.
Once you grab a ped, you're not fighting in the traditional sense.
You're just watching animations with certain properties.

You can't use PedIsHit anymore.
You'd have to use the actual nodes you're performing for conditions.
Title: Re: PedIsHit problem
Post by: mhdt on October 04, 2021, 06:48:43 PM
ok