setWaypointScript: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 29: Line 29:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<code><nowiki>
_wp = _g addWaypoint [_p, 10]
_wp = _g addWaypoint [_p, 10]
_wp setWaypointType "SCRIPTED"
_wp setWaypointScript "Scripts\PursFunc.sqs"


Вызывает скрипт только в формате SQS.
Передаёт одну переменную - Название группы _this select 0.
Causes a script only in the format of SQS.
Passes one variable - Name of group of _this select 0.
</nowiki></code>
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 22:19, 5 October 2008

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Attaches a script to a scripted waypoint. Command consist of a script name and additional script arguments.
Groups:
Uncategorised

Syntax

Syntax:
Waypoint setWaypointScript "command"
Parameters:
Waypoint : Array
command: String
Return Value:
Nothing

Examples

Example 1:
[_grp, 2] setWaypointScript "find.sqs player"

Additional Information

See also:
See also needed

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

Notes

_wp = _g addWaypoint [_p, 10] _wp = _g addWaypoint [_p, 10] _wp setWaypointType "SCRIPTED" _wp setWaypointScript "Scripts\PursFunc.sqs" Вызывает скрипт только в формате SQS. Передаёт одну переменную - Название группы _this select 0. Causes a script only in the format of SQS. Passes one variable - Name of group of _this select 0.

Bottom Section