BIS fnc wpTimed: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {3,}\|" to " |")
m (Some wiki formatting)
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


| TKOH
|game1= tkoh
|version1= 1.00


|1.00
|gr1= Waypoints


|gr1= Waypoints
|exec= spawn


| COUNTDOWN [[Custom_Waypoints|custom waypoint]].
|descr= COUNTDOWN [[Custom_Waypoints|custom waypoint]].


Player has to reach waypoint area before time runs out.
Player has to reach waypoint area before time runs out.


| [[Custom_Waypoints#Function|arguments]]: [failCode,timeLimit,showHint]
|s1= [[Custom Waypoints#Function|Custom Waypoint arguments]]: [failCode,timeLimit,showHint]


|p1= failCode: [[Code]] - code executed when time runs oout before player reach the waypoint (default: {})
|p1= failCode: [[Code]] - (Optional, default <sqf inline>{}</sqf> code executed when time runs oout before player reach the waypoint


|p2= timeLimit: [[Number]] - limit in seconds (default: 30s)
|p2= timeLimit: [[Number]] - (Optional, default 30) limit in seconds


|p3= showHint: [[Boolean]] - true to show info about time left (default: false)
|p3= showHint: [[Boolean]] - (Optional, default [[false]]) [[true]] to show info about time left


| [[Nothing]]
|r1= [[Nothing]]
 
|x1= <code><nowiki>[</nowiki>[[player]],[[position]] dude,100,{[[hintC]] "You failed!"},42,true] [[spawn]] BIS_fnc_wpTimed;</code>


| exec=spawn
|x1= <sqf>[player, position dude, 100, { hintC "You failed!" }, 42, true] spawn BIS_fnc_wpTimed;</sqf>


|seealso=
}}
}}
[[Category:Take_On_Helicopters:_Functions|wpTimed]]
[[Category:Function Group: Waypoints|wpTimed]]

Latest revision as of 13:42, 25 July 2022

Hover & click on the images for description

Description

Description:
COUNTDOWN custom waypoint. Player has to reach waypoint area before time runs out.
Execution:
spawn
Groups:
Waypoints

Syntax

Syntax:
Custom Waypoint arguments: [failCode,timeLimit,showHint]
Parameters:
failCode: Code - (Optional, default {} code executed when time runs oout before player reach the waypoint
timeLimit: Number - (Optional, default 30) limit in seconds
showHint: Boolean - (Optional, default false) true to show info about time left
Return Value:
Nothing

Examples

Example 1:
[player, position dude, 100, { hintC "You failed!" }, 42, true] spawn BIS_fnc_wpTimed;

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