Game logic - AI Behavior – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:


<b>Aggressivity settings:</b>
<b>Aggressivity settings:</b>
*Aggressive - will attack player.
*Aggressive and stand options - AI will chase detected player, returns to standing in a set point after disengaging.
*Flee on sight - start running on sight.
*Aggressive and loiter\patrol options - AI will chase detected player, returns to loitering in a set point after disengaging.
*Ignore player - no action, just ignore.
*Flee on sight and stand option - AI will run from detected player, will return to standing in a set point after player is outside of detection radius.
*Non-aggressive - neutral behaviour.
*Flee on sight and loiter\patrol option - AI will run from detected player, returns to loitering in a set point after player is outside of detection radius.
*Ignore player - no action, just ignore player even if it's near.
*Non-aggressive and stand option - AI has neutral behaviour, just staring at player.
*Non-aggressive and loiter\patrol option - AI stops walks and start staring at player.  


=Radius and distance=
=Radius and distance=
*Detection radius - the radius at which the AI detects the player.
*Detection radius - the radius at which the AI detects the player.
*Flee radius - the radius at which the AI will walk  
*Flee radius - the radius at which the AI will walk  
*Minimum fear distance - the distance from which AI can start to run away from the character
*Minimum fear distance - the distance from which AI can start to run away from the player.


=Behaviour type:=
=Behaviour type:=
Line 21: Line 24:
*Loiter - walks randomly in a limited area around waypoint.
*Loiter - walks randomly in a limited area around waypoint.
*Patrol - walks in selected zone. Possible to set up between reference points.
*Patrol - walks in selected zone. Possible to set up between reference points.
=Other settings=
*Combat radius - defines radius in which AI will chase player before disengaging.





Revision as of 11:19, 28 November 2019

Description

  • AI behaviour is a game logic allows to set up behaviour to entities (animals, NPC). Double click on animal on NPC to select AI behavior logic.
Ylands AIBehaviour.jpg

Properties

Aggressivity settings:

  • Aggressive and stand options - AI will chase detected player, returns to standing in a set point after disengaging.
  • Aggressive and loiter\patrol options - AI will chase detected player, returns to loitering in a set point after disengaging.
  • Flee on sight and stand option - AI will run from detected player, will return to standing in a set point after player is outside of detection radius.
  • Flee on sight and loiter\patrol option - AI will run from detected player, returns to loitering in a set point after player is outside of detection radius.
  • Ignore player - no action, just ignore player even if it's near.
  • Non-aggressive and stand option - AI has neutral behaviour, just staring at player.
  • Non-aggressive and loiter\patrol option - AI stops walks and start staring at player.

Radius and distance

  • Detection radius - the radius at which the AI detects the player.
  • Flee radius - the radius at which the AI will walk
  • Minimum fear distance - the distance from which AI can start to run away from the player.

Behaviour type:

  • Stand - stands on the waypoint, idling.
  • Loiter - walks randomly in a limited area around waypoint.
  • Patrol - walks in selected zone. Possible to set up between reference points.

Other settings

  • Combat radius - defines radius in which AI will chase player before disengaging.



Template:Ylands scripting navbox