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.
- 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.
Built from
- While
flow/WhileDoes Body again and again while the condition holds, then Done. - Less
math/LessWhether A is less than B. - Not
math/NotNo for yes, yes for no. - And
math/AndYes when all of them are. - Nearest player
fn/game.NearestPlayerThe player nearest to a place, how far off they are, and whether there is any player at all. - Less or equal
math/LessOrEqualWhether A is at most B. - Wait
flow/WaitWaits so many seconds of game time before going on.
Modding