playMaker

Author Topic: Set Enemy FOV 3D by Tag  (Read 992 times)

6equj5

  • Playmaker Newbie
  • *
  • Posts: 6
Set Enemy FOV 3D by Tag
« on: March 26, 2023, 08:03:26 PM »
The Playmaker action, which allows you to find an object in the crowd by a given tag and save it to a variable of type GameObject.

The main key difference between this script for creating a view of objects and the base action is that this script does not save an array of found objects, but the first one in the field of view, and saves it in a variable. All other settings remain unchanged: the viewing angle and range are still set, as well as the events that are triggered in case of detection or non-detection.

Download - http://unityplaymakers.ru/wp-content/uploads/SetEnemyFov3dByTag.cs