BIS fnc genericSentence: Difference between revisions
Jump to navigation
Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki) |
m (Created page with "genericSentence {{Function|= Comments ____________________________________________________________________________________________ | ...") |
||
Line 1: | Line 1: | ||
[[Category:Take_On_Helicopters:_Functions|genericSentence]] | |||
{{Function|= Comments | {{Function|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | TKOH |= Game name | ||
|1.00|= Game version | |1.00|= Game version | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Play generic sentence with probablity set by bis_genericSentenceMode variable (0.5 = 50%, 1 = 100%) |= Description | ||
____________________________________________________________________________________________ | |||
| [class,(speaker,delay,canRepeat)] call BIS_fnc_genericSentence; |= Syntax | |||
|p1= class: [[String]] - sentence name (from ''class RadioProtocol_EN_H'') |= | |||
|p2= speaker (Optional): [[Object]] or [[Code]] - sentence speaker (when code, speaker is it's returned value). Default is 2nd [[crew]] member. |= | |||
| | |p3= delay (Optional): [[Number]] - delay from previous generic sentence: When negative, sentence is played always. |= | ||
| | |p4= canRepeat (Optional): [[Boolean]] - true to allow repeating same sentence |= | ||
| |= Return value | | [[Boolean]] - true if sentence was played |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>["FeedbackFlightNegativeHeightTooHigh"] call bis_fnc_genericSentence;</code> |= Example 1 | |||
| | |x2= <code>["FeedbackFlightNegativeSpeedTooSlow",nil,5,true] call bis_fnc_genericSentence;</code> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 49: | Line 41: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
Revision as of 09:36, 24 October 2011
Description
- Description:
- [class,(speaker,delay,canRepeat)] call BIS_fnc_genericSentence;
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- Boolean - true if sentence was played
- Parameters:
- class: String - sentence name (from class RadioProtocol_EN_H)
- speaker (Optional): Object or Code - sentence speaker (when code, speaker is it's returned value). Default is 2nd crew member.
- delay (Optional): Number - delay from previous generic sentence: When negative, sentence is played always.
- canRepeat (Optional): Boolean - true to allow repeating same sentence
- Return Value:
- Return value needed
Examples
- Example 1:
["FeedbackFlightNegativeHeightTooHigh"] call bis_fnc_genericSentence;
- Example 2:
["FeedbackFlightNegativeSpeedTooSlow",nil,5,true] call bis_fnc_genericSentence;
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