publicVariable varName

Operand types

varName: String

Type of returned value

Description

Broadcast variable value to all computers.
Only type Number is supported in OFP version 1.33 and before.

Following types are supported since version OFP 1.34:
* Number
* Boolean
* Object
* Group

From ArmA 1.14, all variable types, including arrays, can be sent using this command.
The only limitation is you cannot transfer references to entities which are local, like scripts, displays, or local objects.

Used In

OFP/ArmA

Example

publicVariable "CTFscoreOne";
Search OFPEC COMREF