Modding
Discord Wishlist on Steam

Library›Places

Random point near

fn/game.RandomPointNear

A place picked by chance within so many metres of another, any way round it.

Random point nearallatmetres5point
Does
An action: done when the run reaches it
Runs
On every machine
Listed under
Library › Places
In a file
fn/game.RandomPointNear

Pins

  • inata position

    The place.

  • inmetresa number

    How far round it, in metres.

    Starts as 5

  • outpointa position

    The place picked.

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.

StartallatmetresRandom numberleast0most6.2832resultangle =valuevalueRandom numberleast0most1resultSquare rootvalueresult×reach =valuevalueangleanglereachreachCosinevalueresultSinevalueresult××Make positionxyresult+Returnallpoint
Random point near

Built from