Modding
Discord Wishlist on Steam

Library›Places

Wait until near

fn/game.WaitUntilNear

Waits until somebody is within so many metres of a place, or the seconds are up. Near tells which.

Wait until nearallwhoatmetres3seconds60near
Does
An action: done when the run reaches it
Runs
On every machine
Listed under
Library › Places
In a file
fn/game.WaitUntilNear

Pins

  • inwhoa thing

    The person.

  • inata position

    The place.

  • inmetresa number

    How far round it, in metres.

    Starts as 3

  • insecondsa number

    How long, in seconds of game time.

    Starts as 60

  • outnearyes or no

    Yes when near.

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 places.graph.json.

StartallwhoatmetressecondsWhileconditionLoop bodyDoneIs nearwhoatmetresnearNOTwaited<ANDWaitseconds0.25waited +=value0.25valueIs nearwhoatmetresnearReturnallnear
Wait until near

Built from