BIS fnc setServerVariable: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " +" to " ") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(\[[a-zA-Z,. ]*\] call ('''|\[\[)?BI(N|S)_fnc_[a-zA-Z]+('''|\]\])?) * \|p1=" to " |s1=$1 |p1=") |
||
Line 9: | Line 9: | ||
| 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. | | 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. | ||
| [namespace, varName, value] call [[BIS_fnc_setServerVariable]] | |s1=[namespace, varName, value] call [[BIS_fnc_setServerVariable]] | ||
|p1= namespace: [[Namespace]] or [[Object]] or [[Group]] - (Optional, default [[missionNamespace]]) | |p1= namespace: [[Namespace]] or [[Object]] or [[Group]] - (Optional, default [[missionNamespace]]) |
Revision as of 15:56, 12 June 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Variables
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