跳到主要内容

Combat Status Fact

Combat Status Fact

A fact that returns 1 if the player is currently in combat, and 0 otherwise. Combat is defined by the CombatListener tracking hits.

字段

字段类型默认值描述
groupRef<GroupEntry>——
thresholdSecondsVar<Int>10—
TypeWriter 通用字段(comment)
字段类型默认值描述
commentString——

How to use it​

The fact is 1 for thresholdSeconds after the player last dealt or received damage from another entity, and 0 otherwise. It is cleared when the player quits. Use it in a criteria, for example to refuse a teleport action during a fight.