Modding
Discord Wishlist on Steam

Library›Fighting

Is hurt

fn/game.IsHurt

Whether somebody is below so many percent of their health.

Is hurtwhobelow50hurt
Does
A value: worked out when a node wired to it asks
Runs
On every machine
Listed under
Library › Fighting
In a file
fn/game.IsHurt

Pins

  • inwhoa character

    The person.

  • inbelowa number

    Percent of health.

    Starts as 50

  • outhurtyes or no

    Yes when below it.

How it is made

Its body, as the bench opens it read-only. Copy into my mod on the bench makes a copy to change. The library's file is fighting.graph.json.

StartallwhobelowHealth ofwhohealthmostExpressionhealth / max(most, 1) * 100 < belowhealthmostbelow= yes or noReturnhurt
Is hurt

Built from