Library›Places
Random point near
fn/game.RandomPointNear
A place picked by chance within so many metres of another, any way round it.
- 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.
Built from
- Random number
math/RandomNumberA number from least to most, by chance. - Square root
math/SqrtThe number that, times itself, gives this one. - Multiply
math/MultiplyMultiplies them. - Cosine
math/CosThe cosine of an angle in radians. - Sine
math/SinThe sine of an angle in radians. - Make position
math/MakeVectorA place from x and y. - Add
math/AddAdds them up: whole numbers stay whole, a number makes a number, positions and colours go by their parts.
Modding