Jump to content

Search the Community

Showing results for tags 'attemptattack()'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • News
  • Project Zomboid
    • PZ Updates
    • General Discussions
    • Bug Reports
    • PZ Support
    • PZ Multiplayer
    • PZ Community & Creativity
    • PZ Suggestions
  • PZ Modding
    • Tutorials & Resources
    • Mods
    • Items
    • Mapping
    • Mod Ideas and Requests
  • General Games Development
    • Indie Scene
  • Other Discussions
    • General Discussion
    • Forum Games & Activities

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Twitter


Interests

Found 1 result

  1. So I'm fairly new to modding the game and I'm trying to make a trait that detects when you're about to be bit by a zombie, and if you press the attack button at the right time, you can shove them off and knock them down, however I'm getting stuck on trying to detect when a zombie is attacking or about to attack you. I've tried thinking of many routes, the only one that I can actually try to perform through code is using AttemptAttack(), but it seems like that always fails, like it's not even a thing anymore, is this outdated for 41.53? Is this only for 40? It doesn't explain this in the documentation so I'm extremely confused. I also tried looking for the animation that plays, however I think the docs are outdated because there's no way to check if a zombie or even IsoGameCharacter is playing an animation or anything like that. This is extremely puzzling for me. Last thing I tried was using AttackAnimTime(), which also gave me the same type of result that AttemptAttack() gives me. Unless I'm missing something, I'm not sure what's going on, could someone try and clear up these questions for me? Every bit is appreciated!
×
×
  • Create New...