Modding:AI Task jealousmeleeattack: Difference between revisions

From Vintage Story Wiki
(Created page with "This does the same thing as meleeattack with one exception. The task only does something if the guarded entity exists (guarded player is logged in) and the guard also has the stayclosetoguardedentity task. == Properties == All properties are inherited from meleeattack. So see the list of properties there. {{Navbox/co...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
This does the same thing as [[Modding:AI_Task_meleeattack|meleeattack]] with one exception. The task only does something if the [[Modding:Entity_Attribute_guardedPlayerUid|guarded entity]] exists (guarded player is logged in) and the guard also has the [[Modding:AI_Task_stayclosetoguardedentity|stayclosetoguardedentity]] task.
Causes the entity to get jealous if the [[Modding:Entity_Attribute_guardedPlayerUid|guarded entity]] has other guards. It attacks those other guards if they are in melee attack range. This does the same thing as [[Modding:AI_Task_meleeattack|meleeattack]], except it only targets other guards.
 
Other entities are considered guards if they have the [[Modding:AI_Task_stayclosetoguardedentity|stayclosetoguardedentity]] task, and it is pointing to the same guarded entity.


== Properties ==
== Properties ==

Latest revision as of 03:28, 20 October 2024

Causes the entity to get jealous if the guarded entity has other guards. It attacks those other guards if they are in melee attack range. This does the same thing as meleeattack, except it only targets other guards.

Other entities are considered guards if they have the stayclosetoguardedentity task, and it is pointing to the same guarded entity.

Properties

All properties are inherited from meleeattack. So see the list of properties there.


Content Modding
Basics Content Mods Developing a Content Mod Packaging & Release
Tutorials
Concepts Modding Concepts Modinfo Variants Domains Patching Remapping World Properties
Moddable Assets
Uncategorized
Icon Sign.png

Wondering where some links have gone?
The modding navbox is going through some changes! Check out Navigation Box Updates for more info and help finding specific pages.

Modding
Modding Introduction Getting Started Theme Pack
Content Modding Content Mods Developing a Content Mod Basic Tutorials Intermediate Tutorials Advanced Tutorials Content Mod Concepts
Code Modding Code Mods Setting up your Development Environment
Property Overview ItemEntityEntity BehaviorsBlockBlock BehaviorsBlock ClassesBlock EntitiesBlock Entity BehaviorsCollectible BehaviorsWorld properties
Workflows & Infrastructure Modding Efficiency TipsMod-engine compatibilityMod ExtensibilityVS Engine
Additional Resources Community Resources Modding API Updates Programming Languages List of server commandsList of client commandsClient startup parametersServer startup parameters
Example ModsAPI DocsGitHub Repository