Skip to content

smatthews1999/runhideattack

Repository files navigation

Run Hide Attack

  • A Unity project for NPC (non player characters) AI.

Getting Started

  • Download or clone project, then open in Unity.

Prerequisites

  • This project uses the free edition of Panda Behavior Trees. The project will not run without this asset installed.

Description

This AI will direct NPCs to run and hide behind obstacles from the player. When enough NPCs have gathered together, they will stop running and attack the player.

Youtube Video

IMAGE ALT TEXT HERE

  • A surface object must contains a Navmesh.
  • Each NPC is a Navmesh Agent.
  • The perimeter vectors from the Navmesh are extracted and examined as possible cover points for NPCs.
  • NPCs that are distant from the Player will be ignored
  • NPCs will keep a safe distance from the player.
  • The number of NPCs gathered together will determine whether they continue to flee or turn and fight.
  • Attacking NPCs will lose interest when they get too far away.
  • Once attacking, any NPCs in range will join the fight.

Built With

Authors

License

  • This project is licensed under the MIT License

Acknowledgments

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages