globalChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 16: Line 16:
| [[Object|Unit]] '''globalChat''' "text" |= Syntax
| [[Object|Unit]] '''globalChat''' "text" |= Syntax


|p1= [[Object|Unit]]: Person or Vehicle |= Parameter 1
|p1= [[Object|Unit]]: [[Object|Person] or [[Object|Vehicle] |= Parameter 1


|p2= text: [[String]] - the message that should be sent |= Parameter 2
|p2= text: [[String]] - the message that should be sent |= Parameter 2

Revision as of 03:41, 27 August 2007

{{Command|= Comments ____________________________________________________________________________________________

| ofp |= Game name

|1.00|= Game version

|arg= global |= Arguments in MP

|eff= local |= Effects in MP ____________________________________________________________________________________________

| Make a unit send a text message over the global radio channel. |= Description ____________________________________________________________________________________________

| Unit globalChat "text" |= Syntax

|p1= Unit: [[Object|Person] or [[Object|Vehicle] |= Parameter 1

|p2= text: String - the message that should be sent |= Parameter 2

| Nothing |= Return value ____________________________________________________________________________________________

|x1=

soldierOne globalChat "Show this text"

|= Example 1

____________________________________________________________________________________________

| sideChat, groupChat, vehicleChat |= See also

}}

Notes

Ceeeb
In OFP 1.96, this command can be used by a Game_Logic unit, which will result in the text being displayed on screen without any indication of the side of radio source, or quotation marks. For example : gamelogic1 globalchat "hello world" will create the text hello world in the radio log.

Bottom Section