setWaypointScript: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (More precise info (and in English only))
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Attaches a script to a scripted waypoint. Command consist of a script name and additional script arguments. |= Description
| Attaches a script to a scripted waypoint. Command consist of a script name and additional script arguments.
 
Sript can be either [[SQS]] or [[SQF]].
 
See [[ArmA:_Mission_Editor#Select_Type|Mission editor Description]] for more informations about scripted waypoints.
 
Name of group |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 29: Line 35:
<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 15:07, 6 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. Sript can be either SQS or SQF. See Mission editor Description for more informations about scripted waypoints. Name of group
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

Bottom Section