Modding
Discord Wishlist on Steam

Library›Places

Wait for a player

fn/game.WaitForPlayer

Waits until any player comes within so many metres of a place, or the seconds are up, and gives back who came.

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

Pins

  • inata position

    The place.

  • inmetresa number

    How far round it, in metres.

    Starts as 8

  • insecondsa number

    How long, in seconds of game time.

    Starts as 600

  • outplayera player movement

    The player.

  • outcameyes or no

    Came.

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.

StartallatmetressecondsWhileconditionLoop bodyDonewaited<cameNOTANDNearest playerallatplayermetresfound≤ANDcame =valuevalueplayer =valuevalueWaitseconds0.5waited +=value0.5valueplayercameReturnallplayercame
Wait for a player

Built from