{"name":"BIS_fnc_genericSentence","title":"BIS fnc genericSentence","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_genericSentence","revid":329652,"updated":"2022-08-01T00:38:41Z","groups":["Conversations"],"status":"ok","games":{"tkoh":"1.00","arma3":"0.50"},"since":"tkoh 1.00","arma3_since":"0.50","description":"Play generic sentence with probablity set by bis_genericSentenceMode variable (0.5 = 50%, 1 = 100%)","syntaxes":[{"syntax":"[class, speaker, delay, canRepeat] call BIS_fnc_genericSentence","params":[{"name":"class","type":"String","description":"sentence name (from *class RadioProtocol_EN_H*)","type_expr":"String"},{"name":"speaker","type":"Object or Code","optional":true,"default":"2nd crew member","description":"sentence speaker (when code, speaker is it is returned value).","type_expr":"Object | Code","text":"speaker: Object or Code - (Optional) sentence speaker (when code, speaker is it is returned value). Default is 2nd crew member."},{"name":"delay","type":"Number","optional":true,"description":"delay from previous generic sentence: When negative, sentence is played always.","type_expr":"Number","text":"delay: Number - (Optional) delay from previous generic sentence: When negative, sentence is played always."},{"name":"canRepeat","type":"Boolean","optional":true,"description":"true to allow repeating same sentence","type_expr":"Boolean","text":"canRepeat: Boolean - (Optional) true to allow repeating same sentence"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true if sentence was played"}}],"examples":[{"code":["[\"FeedbackFlightNegativeHeightTooHigh\"] call BIS_fnc_genericSentence;"]},{"code":["[\"FeedbackFlightNegativeSpeedTooSlow\",nil,5,true] call BIS_fnc_genericSentence;"]}],"see_also":["Generic Sentences"]}