BIS fnc advHint: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(s1=)? *((\[[^ ]+\]) (call|spawn) '''(BI(N|S)_fnc_[a-zA-Z0-9_]+)''');? \| *p1 *=" to " |s1= $3 $4 $5 |p1=")
m (Some wiki formatting)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
 
|version1= 1.00
|1.00


|gr1= GUI
|gr1= GUI


| Shows advanced hint to player.
|descr= Shows advanced hint to player.


|s1= [classes, duration1, condition1, duration2, condition2, showing, onlyFullHint, onlyOnce, useSound] call [[BIS_fnc_advHint]]
|s1= [classes, duration1, condition1, duration2, condition2, showing, onlyFullHint, onlyOnce, useSound] call [[BIS_fnc_advHint]]


|p1= '''classes''': [[Array]] - Array in format ["hint main class","hint class"]
|p1= '''classes''': [[Array]] - array in format ["hint main class", "hint class"]
|p2= '''duration1''': [[Number]] (Optional) - Duration of short hint in seconds. ''(Default 15s)''
 
|p2= '''duration1''': [[Number]] - (Optional, default 15) duration of short hint in seconds


|p3= '''condition1''': [[String]] (Optional) - Condition for hiding of short hint ''(Default "")''
|p3= '''condition1''': [[String]] - (Optional, default "") condition for hiding the short hint


|p4= '''duration2''': [[Number]] (Optional) - Duration of full hint in seconds ''(Default 35s)''
|p4= '''duration2''': [[Number]] - (Optional, default 35) duration of full hint in seconds


|p5= '''condition2''': [[String]] (Optional) - Condition for hiding of full hint ''(Default "")''
|p5= '''condition2''': [[String]] - (Optional, default "") condition for hiding the full hint


|p6= '''showing''': [[Boolean]] (Optional) - True shows hint even if tutorial hints are disabled in game settings ''(Default false)''
|p6= '''showing''': [[Boolean]] - (Optional, default [[false]]) true shows hint even if tutorial hints are disabled in game settings


|p7= '''onlyFullHint''': [[Boolean]] (Optional) - True shows full hint without using of short hint ''(Default false)''
|p7= '''onlyFullHint''': [[Boolean]] - (Optional, default [[false]]) true shows full hint without using of short hint


|p8= '''onlyOnce''': [[Boolean]] (Optional) - Show the hint in mission only once (true) or multiple times (false) ''(Default false)''
|p8= '''onlyOnce''': [[Boolean]] - (Optional, default [[false]]) show the hint in mission only once (true) or multiple times (false)


|p9= '''useSound''': [[Boolean]] (Optional) - True plays a sound when the hint is opened ''(Default true)''
|p9= '''useSound''': [[Boolean]] - (Optional, default [[true]]) true plays a sound when the hint is opened


|r1=[[Nothing]]
|r1= [[Nothing]]


|x1= <code><nowiki>[["Common", "GPS"]]</nowiki> [[call]] [[BIS_fnc_advHint]];</code>
|x1= <sqf>[["Common", "GPS"]] call BIS_fnc_advHint;</sqf>


|x2= <code><nowiki>[["Common", "GPS"], 15,"",35,"",false,false,false,true]</nowiki> [[call]] [[BIS_fnc_advHint]];//Default</code>
|x2= <sqf>[["Common", "GPS"], 15, "", 35, "", false, false, false, true] call BIS_fnc_advHint; // default</sqf>


|seealso= [[Arma_3_Advanced_Hints_(Field_Manual)|Advanced Hints]], [[BIS_fnc_advHintFormat]], [[BIS_fnc_advHintCall]], [[BIS_fnc_advHintArg]]
|seealso= [[Arma 3: Advanced Hints (Field Manual)|Advanced Hints]] [[BIS_fnc_advHintFormat]] [[BIS_fnc_advHintCall]] [[BIS_fnc_advHintArg]]
}}
}}


<dl class="command_description">
{{Note
 
|user= Sixtyfour
<dt></dt>
|timestamp= 20160813120900
<dd class="notedate">Posted on August 13, 2016 - 12:09 (UTC)</dd>
|text= This command will not do anything for players who have "Tutorial Hints" disabled in their Options > Game difficulty settings or on servers that disable it in their relevant difficulty preset.
<dt class="note">[[User:Sixtyfour|Sixtyfour]]</dt>
}}
<dd class="note">
This command will not do anything for players who have "Tutorial Hints" disabled in their Options > Game difficulty settings or on servers that disable it in their relevant difficulty preset.
</dd>
</dl>

Latest revision as of 16:30, 13 July 2022

Hover & click on the images for description

Description

Description:
Shows advanced hint to player.
Execution:
call
Groups:
GUI

Syntax

Syntax:
[classes, duration1, condition1, duration2, condition2, showing, onlyFullHint, onlyOnce, useSound] call BIS_fnc_advHint
Parameters:
classes: Array - array in format ["hint main class", "hint class"]
duration1: Number - (Optional, default 15) duration of short hint in seconds
condition1: String - (Optional, default "") condition for hiding the short hint
duration2: Number - (Optional, default 35) duration of full hint in seconds
condition2: String - (Optional, default "") condition for hiding the full hint
showing: Boolean - (Optional, default false) true shows hint even if tutorial hints are disabled in game settings
onlyFullHint: Boolean - (Optional, default false) true shows full hint without using of short hint
onlyOnce: Boolean - (Optional, default false) show the hint in mission only once (true) or multiple times (false)
useSound: Boolean - (Optional, default true) true plays a sound when the hint is opened
Return Value:
Nothing

Examples

Example 1:
[["Common", "GPS"]] call BIS_fnc_advHint;
Example 2:
[["Common", "GPS"], 15, "", 35, "", false, false, false, true] call BIS_fnc_advHint; // default

Additional Information

See also:
Advanced Hints BIS_fnc_advHintFormat BIS_fnc_advHintCall BIS_fnc_advHintArg

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
Sixtyfour - c
Posted on Aug 13, 2016 - 12:09 (UTC)
This command will not do anything for players who have "Tutorial Hints" disabled in their Options > Game difficulty settings or on servers that disable it in their relevant difficulty preset.