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: | ||
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 |
|
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 | Item • Entity • Entity Behaviors • Block • Block Behaviors • Block Classes • Block Entities • Block Entity Behaviors • Collectible Behaviors • World properties |
Workflows & Infrastructure | Modding Efficiency Tips • Mod-engine compatibility • Mod Extensibility • VS Engine |
Additional Resources | Community Resources • Modding API Updates • Programming Languages • List of server commands • List of client commands • Client startup parameters • Server startup parameters Example Mods • API Docs • GitHub Repository |