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


Author Topic: PedIsHit problem  (Read 1215 times)

0 Members and 1 Guest are viewing this topic.

Offline mhdt

  • Jr. Member
  • **
  • Posts: 93
  • 中国!中国!中国!
    • View Profile
PedIsHit problem
« on: October 03, 2021, 08:14:30 PM »
PedIsHit is not valid for people who have been by GrappleTarget

Offline SimonBestia

  • Full Member
  • ***
  • Posts: 293
  • Gender: Male
  • Bully-Board's Best Weeb
    • View Profile
    • Youtube Channel
Re: PedIsHit problem
« Reply #1 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.

Offline mhdt

  • Jr. Member
  • **
  • Posts: 93
  • 中国!中国!中国!
    • View Profile
Re: PedIsHit problem
« Reply #2 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

Offline SimonBestia

  • Full Member
  • ***
  • Posts: 293
  • Gender: Male
  • Bully-Board's Best Weeb
    • View Profile
    • Youtube Channel
Re: PedIsHit problem
« Reply #3 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.

Offline mhdt

  • Jr. Member
  • **
  • Posts: 93
  • 中国!中国!中国!
    • View Profile
Re: PedIsHit problem
« Reply #4 on: October 04, 2021, 06:48:43 PM »
ok