BIS fnc genericSentence: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " " to " ")
m (Text replacement - " \| *(\[\[[a-zA-Z ]+\]\].+) \|x1=" to " |r1=$1 |x1=")
Line 19: Line 19:
|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
|r1=[[Boolean]] - true if sentence was played


|x1= <code>["FeedbackFlightNegativeHeightTooHigh"] call bis_fnc_genericSentence;</code>
|x1= <code>["FeedbackFlightNegativeHeightTooHigh"] call bis_fnc_genericSentence;</code>

Revision as of 21:27, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Conversations

Syntax

Syntax:
Syntax needed
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