Modding
Discord Wishlist on Steam

Library›Orders

Walk to

fn/game.WalkTo

Sends somebody to a place along the paths and waits until they are there or the seconds are up, then lets them go back to their own day. Arrived tells which.

Walk toallwhoatrunseconds30arrived
Does
An action: done when the run reaches it
Runs
On every machine
Listed under
Library › Orders
In a file
fn/game.WalkTo

Pins

  • inwhoa character

    The person.

  • inata position

    The place.

  • inrunyes or no

    Yes to run.

    Starts as false

  • insecondsa number

    How long, in seconds of game time.

    Starts as 30

  • outarrivedyes or no

    Yes when they got there in time.

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

StartallwhoatrunsecondsWalk toWhopointspeed0.5runarrive distance0.6WhileconditionLoop bodyDoneIs nearwhoatmetres1.2nearNOTwaited<ANDWaitseconds0.25waited +=value0.25valueLet goWhostay hereIs nearwhoatmetres1.2nearReturnallarrived
Walk to

Built from