clearRadio: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>\[\[([a-zA-Z0-9_]+)\]\] ([a-zA-Z0-9_]+);?<\/code>" to "<sqf>$1 $2;</sqf>")
m (Some wiki formatting)
 
(2 intermediate revisions by the same user not shown)
Line 29: Line 29:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>[[clearRadio]];</code>
|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