clearRadio: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Some wiki formatting)
 
Line 29: Line 29:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <sqf>clearRadio;</sqf>
|x1= <sqf>
for "_i" from 3 to 1 step -1 do
{
systemChat format ["The chat history will disappear in %1", _i];
sleep 1;
};
 
clearRadio; // removes previous messages
enableRadio false; // disables the chat
</sqf>


|seealso= [[enableRadio]]
|seealso= [[enableRadio]]
}}
}}
<dl class="command_description">
<dt class="note">[[User:Crowe|Crowe]]</dt>
<dd class="note">
Use <sqf>enableRadio false;</sqf> to disable the chat.
</dd>
</dl>

Latest revision as of 00:34, 7 November 2024

Hover & click on the images for description

Description

Description:
Clean up the content of radio protocol history.
Groups:
Radio and Chat

Syntax

Syntax:
clearRadio
Return Value:
Nothing

Examples

Example 1:
for "_i" from 3 to 1 step -1 do { systemChat format ["The chat history will disappear in %1", _i]; sleep 1; }; clearRadio; // removes previous messages enableRadio false; // disables the chat

Additional Information

See also:
enableRadio

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