setWaypointTimeout: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Some wiki formatting)
 
(46 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


| arma1 |Game name=
|game1= ofpe
|version1= 1.00


|1.00|Game version=
|game2= arma1
|version2= 1.00


|gr1= Waypoints |GROUP1=
|game3= arma2
|version3= 1.00


| Defines the time between condition satisfaction and waypoint finish (randomly from min to max, with an average value mid). |DESCRIPTION=
|game4= arma2oa
|version4= 1.50


| waypoint '''setWaypointTimeout''' [min, mid, max] |SYNTAX=
|game5= tkoh
|version5= 1.00


|p1= waypoint: [[Array]] - format [[Waypoint]] |PARAMETER1=
|game6= arma3
|p2= [min, mid, max]: [[Array]] |PARAMETER2=
|version6= 0.50
|p3= min: [[Number]] |PARAMETER3=
|p4= mid: [[Number]] |PARAMETER4=
|p5= max: [[Number]] |PARAMETER5=


| [[Nothing]] |RETURNVALUE=
|gr1= Waypoints
 
|x1= <code>[_grp, 2] [[setWaypointTimeout]] [5, 10, 6];</code> |EXAMPLE1=


| [[waypoints]], [[deleteWaypoint]], [[copyWaypoints]], [[setCurrentWaypoint]], [[setWaypointBehaviour]], [[setWaypointCombatMode]], [[setWaypointCompletionRadius]], [[setWaypointDescription]], [[setWaypointFormation]], [[setWaypointHousePosition]], [[setWaypointPosition]], [[setWaypointScript]], [[setWaypointSpeed]], [[setWaypointStatements]], [[setWaypointType]], [[setWaypointVisible]], [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[setWaypointLoiterRadius]], [[waypointLoiterRadius]], [[addWaypoint]], [[setWaypointLoiterType]], [[waypointTimeoutCurrent]], [[waypointSpeed]] |SEEALSO=
|descr= Defines the time between condition satisfaction and waypoint finish (randomly from min to max, with an average value mid).


|s1= waypoint [[setWaypointTimeout]] [min, mid, max]
|p1= waypoint: [[Array]] - format [[Waypoint]]
|p2= min: [[Number]]
|p3= mid: [[Number]]
|p4= max: [[Number]]
|r1= [[Nothing]]
|x1= <sqf>[_grp, 2] setWaypointTimeout [5, 10, 6];</sqf>
|seealso= [[waypoints]] [[deleteWaypoint]] [[copyWaypoints]] [[setCurrentWaypoint]] [[setWaypointBehaviour]] [[setWaypointCombatMode]] [[setWaypointCompletionRadius]] [[setWaypointDescription]] [[setWaypointFormation]] [[setWaypointHousePosition]] [[setWaypointPosition]] [[setWaypointScript]] [[setWaypointSpeed]] [[setWaypointStatements]] [[setWaypointType]] [[setWaypointVisible]] [[waypointAttachVehicle]] [[waypointAttachedVehicle]] [[setWaypointLoiterRadius]] [[waypointLoiterRadius]] [[addWaypoint]] [[setWaypointLoiterType]] [[waypointTimeoutCurrent]] [[waypointSpeed]]
}}
}}


<h3 style="display:none">Notes</h3>
{{Note
<dl class="command_description">
|user= Lucky44
<!-- Note Section BEGIN -->
|timestamp= 20101212003200
<dd class="notedate">Posted on 00:32, 12 December 2010</dd>
|text= The example doesn't seem to make sense, according to the listed syntax. It seems to set a Max time greater than the Mid time.
<dt class="note">[[User:Lucky44|Lucky44]]</dt>
}}
<dd class="note">
The example doesn't seem to make sense, according to the listed syntax. It seems to set a Max time greater than the Mid time.


<dd class="notedate">Posted on  03:30, 12 December 2010</dd>
{{Note
<dt class="note">[[User:Tom 48 97|Tom 48 97]]</dt>
|user= Tom 48 97
<dd class="note">
|timestamp= 20101212033000
If mid is greater than max, the result will be really near the mid value.
|text= If mid is greater than max, the result will be really near the mid value.
Results with the values of the example: 8.237, 9.383, 10.425, 9.417, 9.43401, 10.425, 9.90601, 9.96701, 9.42401, 9.42502, 9.96698, 9.89999...
Results with the values of the example: 8.237, 9.383, 10.425, 9.417, 9.43401, 10.425, 9.90601, 9.96701, 9.42401, 9.42502, 9.96698, 9.89999...
<!-- Note Section END -->
}}
</dl>
 
[[Category:Scripting Commands|SETWAYPOINTTIMEOUT]]
{{GameCategory|ofpe|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}
[[Category:Command_Group:_Waypoints|SETWAYPOINTTIMEOUT]]
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 17:52, 15 August 2022

Hover & click on the images for description

Description

Description:
Defines the time between condition satisfaction and waypoint finish (randomly from min to max, with an average value mid).
Groups:
Waypoints

Syntax

Syntax:
waypoint setWaypointTimeout [min, mid, max]
Parameters:
waypoint: Array - format Waypoint
min: Number
mid: Number
max: Number
Return Value:
Nothing

Examples

Example 1:
[_grp, 2] setWaypointTimeout [5, 10, 6];

Additional Information

See also:
waypoints deleteWaypoint copyWaypoints setCurrentWaypoint setWaypointBehaviour setWaypointCombatMode setWaypointCompletionRadius setWaypointDescription setWaypointFormation setWaypointHousePosition setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointType setWaypointVisible waypointAttachVehicle waypointAttachedVehicle setWaypointLoiterRadius waypointLoiterRadius addWaypoint setWaypointLoiterType waypointTimeoutCurrent waypointSpeed

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
Lucky44 - c
Posted on Dec 12, 2010 - 00:32 (UTC)
The example doesn't seem to make sense, according to the listed syntax. It seems to set a Max time greater than the Mid time.
Tom 48 97 - c
Posted on Dec 12, 2010 - 03:30 (UTC)
If mid is greater than max, the result will be really near the mid value. Results with the values of the example: 8.237, 9.383, 10.425, 9.417, 9.43401, 10.425, 9.90601, 9.96701, 9.42401, 9.42502, 9.96698, 9.89999...