Class EntityBehaviorSelectionBoxes
- Namespace
- Vintagestory.GameContent
- Assembly
- VSEssentials.dll
Allows to define interactable hitboxes directly from entity shape elements.
Uses the "selectionboxes" code Open in GitHub
[DocumentAsJson]
public class EntityBehaviorSelectionBoxes : EntityBehavior
- Inheritance
-
EntityBehaviorSelectionBoxes
Examples
"behaviors": [
{
"code": "selectionboxes",
"selectionBoxes": ["HeadAP", "FaceAP", "NeckAP", "MidAP", "MidUnderAP", "RearAP", "RearSideAP", "RFrontAP", "LFrontAP", "TempGear1AP", "TempGear2AP", "TempGear3AP"]
},
],
Fields
SelectionBoxes (Required)
A list of attachment points from entity shape used to define hitboxes
[DocumentAsJson("Required", "", false)]
private string[] selectionBoxCodes
Field Value
- string[]