BIS fnc genericSentence: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *tkoh * *\| *1.([0-9]{2}) * +\|([^g]|g[^a])" to " | tkoh |1.$1 |game2= arma3 |version2= 0.50 |$2") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| tkoh | |game1= tkoh | ||
|1.00 | |version1= 1.00 | ||
|game2= arma3 | |game2= arma3 | ||
Line 9: | Line 9: | ||
|gr1= Conversations | |gr1= Conversations | ||
| Play generic sentence with probablity set by bis_genericSentenceMode variable (0.5 | |descr= Play generic sentence with probablity set by bis_genericSentenceMode variable (0.5 = 50%, 1 = 100%) | ||
| [class, | |s1= [class, speaker, delay, canRepeat] call [[BIS_fnc_genericSentence]] | ||
|p1= class: [[String]] - sentence name (from ''class RadioProtocol_EN_H'') | |p1= class: [[String]] - sentence name (from ''class RadioProtocol_EN_H'') | ||
|p2= speaker | |p2= speaker: [[Object]] or [[Code]] - (Optional) sentence speaker (when code, speaker is it is returned value). Default is 2nd [[crew]] member. | ||
|p3= delay | |p3= delay: [[Number]] - (Optional) delay from previous generic sentence: When negative, sentence is played always. | ||
|p4= canRepeat | |p4= canRepeat: [[Boolean]] - (Optional) true to allow repeating same sentence | ||
|r1=[[Boolean]] - true if sentence was played | |r1= [[Boolean]] - true if sentence was played | ||
|x1= < | |x1= <sqf>["FeedbackFlightNegativeHeightTooHigh"] call BIS_fnc_genericSentence;</sqf> | ||
|x2= < | |x2= <sqf>["FeedbackFlightNegativeSpeedTooSlow",nil,5,true] call BIS_fnc_genericSentence;</sqf> | ||
|seealso= [[Generic Sentences]] | |seealso= [[Generic Sentences]] | ||
}} | }} | ||
Latest revision as of 01:38, 1 August 2022
Description
- Description:
- Play generic sentence with probablity set by bis_genericSentenceMode variable (0.5 = 50%, 1 = 100%)
- Execution:
- call
- Groups:
- Conversations
Syntax
- Syntax:
- [class, speaker, delay, canRepeat] call BIS_fnc_genericSentence
- Parameters:
- class: String - sentence name (from class RadioProtocol_EN_H)
- speaker: Object or Code - (Optional) sentence speaker (when code, speaker is it is returned value). Default is 2nd crew member.
- delay: Number - (Optional) delay from previous generic sentence: When negative, sentence is played always.
- canRepeat: Boolean - (Optional) true to allow repeating same sentence
- Return Value:
- Boolean - true if sentence was played
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- Generic Sentences
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