BIS_fnc_genericSentence

From Bohemia Interactive Community
Revision as of 01:38, 1 August 2022 by Lou Montana (talk | contribs) (Some wiki formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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:
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:
["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