For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/PlayerAimAssist.md.

Class: PlayerAimAssist

player

Beta

用于玩家瞄准辅助相关 API 的容器。

A container for APIs related to player aim-assist.

Properties

settings?

readonly optional settings?: PlayerAimAssistSettings

Beta

玩家当前激活的瞄准辅助设置,如果未激活则为 undefined

Remarks

The player's currently active aim-assist settings, or undefined if not active.

Methods

set()

set(settings?): void

World Mutation Beta

设置玩家的瞄准辅助设置。

Parameters

settings?

PlayerAimAssistSettings

要为玩家激活的瞄准辅助设置,如果为 undefined,则瞄准辅助将被禁用。 Aim-assist settings to activate for the player, if undefined aim-assist will be disabled.

Returns

void

Remarks

Sets the player's aim-assist settings.

Throws

This function can throw errors.

ArgumentOutOfBoundsError

EngineError

Error

InvalidArgumentError

InvalidEntityError

NamespaceNameError

同领域相关