AbilityAttemptEvent
Event fired before ability execution each think tick. Set BlockedButtons to prevent specific abilities from being cast.
public sealed class AbilityAttemptEvent
Namespace: DeadworksManaged.Api
Source: Events/AbilityAttemptEvent.cs#L7
Properties
AbilityAttemptEvent.PlayerSlot
Player slot (0-63).
Signature
public required int PlayerSlot { get; init; }
Source: Events/AbilityAttemptEvent.cs#L9
AbilityAttemptEvent.HeldButtons
Current held button state (CInButtonState[0]).
Signature
public required InputButton HeldButtons { get; init; }
Source: Events/AbilityAttemptEvent.cs#L12
AbilityAttemptEvent.ChangedButtons
Changed button state (CInButtonState[1]).
Signature
public required InputButton ChangedButtons { get; init; }
Source: Events/AbilityAttemptEvent.cs#L15
AbilityAttemptEvent.ScrollButtons
Scroll button state (CInButtonState[2]).
Signature
public required InputButton ScrollButtons { get; init; }
Source: Events/AbilityAttemptEvent.cs#L18
AbilityAttemptEvent.BlockedButtons
Set bits in this mask to block those buttons from being processed by the ability system. Cleared bits have no effect. Multiple plugins' blocked masks are OR'd together.
Signature
public InputButton BlockedButtons { get; set; }
Source: Events/AbilityAttemptEvent.cs#L24
AbilityAttemptEvent.ForcedButtons
Set bits in this mask to force those buttons to be pressed, even if the player isn't pressing them. Multiple plugins' forced masks are OR'd together.
Signature
public InputButton ForcedButtons { get; set; }
Source: Events/AbilityAttemptEvent.cs#L30
AbilityAttemptEvent.Controller
Gets the player controller for this player slot.
Signature
public unsafe CCitadelPlayerController? Controller { get; }
Source: Events/AbilityAttemptEvent.cs#L34
AbilityAttemptEvent.IsAnyAbilityHeld
Signature
public bool IsAnyAbilityHeld { get; }
Source: Events/AbilityAttemptEvent.cs#L48
AbilityAttemptEvent.IsAnyItemHeld
Signature
public bool IsAnyItemHeld { get; }
Source: Events/AbilityAttemptEvent.cs#L49
Methods
AbilityAttemptEvent.IsHeld()
True if the given button(s) are held this tick.
Signature
public bool IsHeld(InputButton button)
Source: Events/AbilityAttemptEvent.cs#L44
AbilityAttemptEvent.IsChanged()
True if the given button(s) changed this tick.
Signature
public bool IsChanged(InputButton button)
Source: Events/AbilityAttemptEvent.cs#L46
AbilityAttemptEvent.Block()
Block the specified button(s) from being processed.
Signature
public void Block(InputButton button)
Source: Events/AbilityAttemptEvent.cs#L52
AbilityAttemptEvent.BlockAllAbilities()
Signature
public void BlockAllAbilities()
Source: Events/AbilityAttemptEvent.cs#L53
AbilityAttemptEvent.BlockAllItems()
Signature
public void BlockAllItems()
Source: Events/AbilityAttemptEvent.cs#L54
AbilityAttemptEvent.BlockAll()
Signature
public void BlockAll()
Source: Events/AbilityAttemptEvent.cs#L55
AbilityAttemptEvent.Force()
Force the specified button(s) to be pressed.
Signature
public void Force(InputButton button)
Source: Events/AbilityAttemptEvent.cs#L58
AbilityAttemptEvent.ForceAllAbilities()
Signature
public void ForceAllAbilities()
Source: Events/AbilityAttemptEvent.cs#L59
AbilityAttemptEvent.ForceAllItems()
Signature
public void ForceAllItems()