setWaypointScript: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (example typo) |
Killzone Kid (talk | contribs) (Undo revision 97841 by Killzone Kid (talk) still works apparently) |
||
Line 21: | Line 21: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[_grp, 2] [[setWaypointScript]] "find.sqs";</code> |= Example 1 | |x1= <code>[_grp, 2] [[setWaypointScript]] "find.sqs [[player]]";</code> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 11:47, 12 November 2016
Description
- 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]
In Arma 3, command argument can be a String with code, a reference to .sqf script (it will have to explicitly end with .sqf) or a reference to .sqs script.
See Mission editor Description for more information about scripted waypoints. - Groups:
- Uncategorised
Syntax
- Syntax:
- waypoint setWaypointScript command
- Parameters:
- waypoint: Array - format Waypoint
- command: String
- Return Value:
- Nothing
Examples
- Example 1:
[_grp, 2] setWaypointScript "find.sqs player";
Additional Information
- See also:
- waypointsdeleteWaypointcopyWaypointssetCurrentWaypointsetWaypointBehavioursetWaypointCombatModesetWaypointCompletionRadiussetWaypointDescriptionsetWaypointFormationsetWaypointHousePositionsetWaypointPositionsetWaypointSpeedsetWaypointStatementssetWaypointTimeoutsetWaypointTypesetWaypointVisiblewaypointAttachVehiclewaypointAttachedVehiclesetWaypointLoiterRadiuswaypointLoiterRadiusaddWaypointsetWaypointLoiterTypewaypointSpeed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note