Table of Contents

Enum EnumHandHandling

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

How the engine should handle attacking with an item in hands

public enum EnumHandHandling

Fields

Handled = 1

Uses the engine default behavior which is to play an attack or build animation and do block breaking/damage entities if in range, but also notify the server that the Use/Attack method has to be called serverside as well. Will call the *Step and *Stop methods.

NotHandled = 0

Uses the engine default behavior which is to play an attack animation and do block breaking/damage entities if in range. Will not call the *Step and *Stop methods.

PreventDefault = 4

Do not play any first person attack animation, don't break blocks in range or damage entities in range. Notifies that the server that the Use/Attack method has to be called serverside as well. Will call the *Step and *Stop methods.

PreventDefaultAction = 3

Do play first person attack animation, don't break blocks/damage entities in range. Notifies that the server that the Use/Attack method has to be called serverside as well. Will call the *Step and *Stop methods.

PreventDefaultAnimation = 2

Do not play any default first person attack animation, but do block breaking/damage entities if in range. Notifies that the server that the Use/Attack method has to be called serverside as well. Will call the *Step and *Stop methods.