swiftlys2/docs/api/releases/features/ai/
API Reference › Misc

HookResult

Enum
Namespace: SwiftlyS2.Shared.Misc · Assembly: SwiftlyS2.CS2.dll
public enum HookResult : uint

Result of a hook.

View source
CancelOriginal

The executions of following hooks will continue and original function will be cancelled.

3
Continue

The executions of following hooks and original function will continue.

0
Handled

The executions of following hooks will be cancelled, but the original function will continue. Won't work for post hooks.

2
Stop

The executions of following hooks and original function will all be cancelled. Won't work for post hooks.

1