BIS fnc genericSentence: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| TKOH |Game name=
| TKOH


|1.00|Game version=
|1.00


|gr1 = Conversations |GROUP1=
|gr1 = Conversations


| 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%)


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


|p1= class: [[String]] - sentence name (from ''class RadioProtocol_EN_H'') |Parameter1=
|p1= class: [[String]] - sentence name (from ''class RadioProtocol_EN_H'')


|p2= speaker (Optional): [[Object]] or [[Code]] - sentence speaker (when code, speaker is it is returned value). Default is 2nd [[crew]] member. |Parameter2=
|p2= speaker (Optional): [[Object]] or [[Code]] - sentence speaker (when code, speaker is it is returned value). Default is 2nd [[crew]] member.


|p3= delay (Optional): [[Number]] - delay from previous generic sentence: When negative, sentence is played always. |PARAMETER3=
|p3= delay (Optional): [[Number]] - delay from previous generic sentence: When negative, sentence is played always.


|p4= canRepeat (Optional): [[Boolean]] - true to allow repeating same sentence |PARAMETER4=
|p4= canRepeat (Optional): [[Boolean]] - true to allow repeating same sentence


| [[Boolean]] - true if sentence was played |RETURNVALUE=
| [[Boolean]] - true if sentence was played
   
   
|x1= <code>["FeedbackFlightNegativeHeightTooHigh"] call bis_fnc_genericSentence;</code> |EXAMPLE1=
|x1= <code>["FeedbackFlightNegativeHeightTooHigh"] call bis_fnc_genericSentence;</code>


|x2= <code>["FeedbackFlightNegativeSpeedTooSlow",nil,5,true] call bis_fnc_genericSentence;</code> |EXAMPLE2=
|x2= <code>["FeedbackFlightNegativeSpeedTooSlow",nil,5,true] call bis_fnc_genericSentence;</code>


| [[Generic Sentences]] |SEEALSO=
| [[Generic Sentences]]


}}
}}

Revision as of 00:04, 18 January 2021

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 (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:
["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


Bottom Section