BIS fnc onPlayerConnected: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|Multiplayer Effects(...) |
Lou Montana (talk | contribs) m (Text replacement - " {3,}\|" to " |") |
||
Line 12: | Line 12: | ||
| [code, params]] call [[BIS_fnc_onPlayerConnected]] | | [code, params]] call [[BIS_fnc_onPlayerConnected]] | ||
|p1= code: [[Code]] or [[String]] - Function name or [[Code|code]] to be executed. Following parameters are passed to the function or code: | |p1= code: [[Code]] or [[String]] - Function name or [[Code|code]] to be executed. Following parameters are passed to the function or code: | ||
Line 19: | Line 18: | ||
|p2= params: [[Anything]] - Parameters passed to the code or function | |p2= params: [[Anything]] - Parameters passed to the code or function | ||
| [[Boolean]] | | [[Boolean]] |
Revision as of 23:01, 18 January 2021
Description
- Description:
- Executes a function on server every time a player connects the mission.
- Execution:
- call
- Groups:
- MultiplayerEvent Handlers
Syntax
- Syntax:
- [code, params]] call BIS_fnc_onPlayerConnected
- Parameters:
- code: Code or String - Function name or code to be executed. Following parameters are passed to the function or code:
- 0: Player
- 1: Params
- params: Anything - Parameters passed to the code or function
- Return Value:
- Boolean
Examples
- Example 1:
[ { params ["_player", "_params"]; hint name _player; hint _params; }, "Parameter" ] call BIS_fnc_onPlayerConnected;
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