BIS fnc genericSentence: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |r1=[[" to " |r1= [[") |
Lou Montana (talk | contribs) m (Text replacement - "<code>(\[?[^\[]+\]?) *(\[\[)?(call|spawn)(\]\])? *(\[\[)?(BI(N|S)_fnc_[a-zA-Z0-9_]+)(\]\])?;?<\/code>" to "<sqf>$1 $3 $6;</sqf>") |
||
Line 23: | Line 23: | ||
|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]] | ||
}} | }} |
Revision as of 13:24, 1 July 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 (Optional): Object or Code - sentence speaker (when code, speaker is it is 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:
- 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