14 September 2015

The flyto command makes Corrade fly towards a position in a given time duration getting as close to the vicinity of the position as possible with a specified affinity and finally turning flight mode on or off depending on whether fly is set to True, respectively False.

CommandRequired ParametersRequired Corrade PermissionsExample
flytogroup, password, positionmovement
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "flyto",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // fly to 1m above this object
            "position", llGetPos() + <0,0,1>,
            // accept a precision of 2 meters from the target
            "vicinity", 2,
            // upon reaching the object, turn flight off
            "fly", "False",
            // give Corrade 10 seconds to arrive at this object
            "duration", 10000,
            "callback", wasURLEscape(URL)
        ]
    )
);
Optional ParameterPossible ValueDescription
durationTime in milliseconds.Allow duration for Corrade to reach position - otherwise, send an error to the callback indicating that Corrade has not properly reached its destination.
vicinityA range in meters (default 2).If Corrade arrives in the vicinity of the position, consider that Corrade has arrived at the destination.
affinityAn integer representing the affinity of the movement (default 2).How precise should the movements be?
flyTrue (default)When Corrade has reached the destination, keep flight mode on.
FalseWhen Corrade has reached the destination, turn flight mode off (useful, for climbing platforms).

Notes