Перейти к основному содержимому

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.