BIS fnc setServerVariable: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
||
Line 4: | Line 4: | ||
| arma3 |Game name= | | arma3 |Game name= | ||
|1.00| | |1.00|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 23:46, 30 August 2019
Description
- Description:
- Set variable stored only on server. Clients can the download it using BIS_fnc_getServerVariable. Used when you want to share variables only to specific clients to prevent large traffic.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [namespace, varName, value] call BIS_fnc_setServerVariable
- Parameters:
- namespace: Namespace or Object or Group - (Optional, default missionNamespace)
- varName: String - variable name
- value: Anything - variable value
- Return Value:
- Boolean - true when done
Examples
- Example 1:
[nil, "playerHealth", damage player] call BIS_fnc_setServerVariable;
- Example 2:
[player, "playerHealth", damage player] call BIS_fnc_setServerVariable;
Additional Information
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