跳到主要内容
 Warning: Beta Version
版本:Beta ⚠️(未翻译)

Player Close By Activity

The PlayerCloseByActivityEntry is an activity that activates child activities when a viewer is close by.

The activity will only activate when the viewer is within the defined range.

When the maximum idle duration is reached, the activity will deactivate. If the maximum idle duration is set to 0, then it won't use the timer.

How could this be used?

When the player has to follow the NPC and walks away, let the NPC wander around (or stand still) around the point the player walked away. When the player returns, resume its path.

When the npc is walking, and a player comes in range Stand still.

Fields

Range

必填

The range in which the player has to be close by to activate the activity.

Max Idle Duration

必填

The maximum duration a player can be idle in the same range before the activity deactivates.


持续时间可以按以下格式指定:1d 2h 3m 4s。支持以下单位:d 表示天,h 表示小时,m 表示分钟,s 表示秒。

Close By Activity

必填

The activity that will be used when there is a player close by.

Idle Activity

必填

The activity that will be used when there is no player close by.