BIS fnc genericSentence: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Play generic sentence with probablity set by bis_genericSentenceMode variable (0.5 <nowiki>=</nowiki> 50%, 1 <nowiki>=</nowiki> 100%) |= Description
| Play generic sentence with probablity set by bis_genericSentenceMode variable (0.5 <nowiki>=</nowiki> 50%, 1 <nowiki>=</nowiki> 100%) |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [class,(speaker,delay,canRepeat)] call BIS_fnc_genericSentence; |= Syntax
| [class,(speaker,delay,canRepeat)] call BIS_fnc_genericSentence; |SYNTAX=


|p1= class: [[String]] - sentence name (from ''class RadioProtocol_EN_H'') |=
|p1= class: [[String]] - sentence name (from ''class RadioProtocol_EN_H'') |=
Line 20: Line 20:
|p4= canRepeat (Optional): [[Boolean]] - true to allow repeating same sentence |=
|p4= canRepeat (Optional): [[Boolean]] - true to allow repeating same sentence |=


| [[Boolean]] - true if sentence was played |= Return value
| [[Boolean]] - true if sentence was played |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
Line 28: Line 28:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Generic Sentences]] |= See also
| [[Generic Sentences]] |SEEALSO=


}}
}}

Revision as of 12:28, 7 April 2019

Hover & click on the images for description

Description

Description:
Play generic sentence with probablity set by bis_genericSentenceMode variable (0.5 = 50%, 1 = 100%)
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[class,(speaker,delay,canRepeat)] call BIS_fnc_genericSentence;
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:
Boolean - true if sentence was played

Examples

Example 1:
["FeedbackFlightNegativeHeightTooHigh"] call bis_fnc_genericSentence;
Example 2:
["FeedbackFlightNegativeSpeedTooSlow",nil,5,true] call bis_fnc_genericSentence;

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

Notes

Bottom Section