Description
Attaches a script to a scripted waypoint. In early versions of Arma, command consisted of a script name and additional script arguments and the script had to use SQS Syntax. The script receives the following arguments in _this variable: [group, position, target] + [the optional passed arguments]. The optional arguments are appended to the end of the arguments array.
Note
Arma 3: In Arma 3, command argument can be a reference to .sqf script (it will have to explicitly end with
.sqf) or a reference to.sqsscript.
Syntax
waypoint setWaypointScript command
Parameters:
Returns: Nothing
Examples
Example 1
[_grp, 2] setWaypointScript "find.sqs player";
Example 2
[_grp, 2] setWaypointScript "somescript.sqf [1,2,3,4,5,6,7,8]";
See also
waypoints · deleteWaypoint · copyWaypoints · setCurrentWaypoint · setWaypointBehaviour · setWaypointCombatMode · setWaypointCompletionRadius · setWaypointDescription · setWaypointFormation · setWaypointHousePosition · setWaypointPosition · setWaypointSpeed · setWaypointStatements · setWaypointTimeout · setWaypointType · setWaypointVisible · waypointAttachVehicle · waypointAttachedVehicle · setWaypointLoiterRadius · waypointLoiterRadius · addWaypoint · setWaypointLoiterType · waypointSpeed