BIS fnc onPlayerConnected: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 9: | Line 8: | ||
|gr2 = Event Handlers |GROUP2= | |gr2 = Event Handlers |GROUP2= | ||
| Executes a function on server every time a player connects the mission.|Description= | | Executes a function on server every time a player connects the mission.|Description= | ||
| [code, params]] call [[BIS_fnc_onPlayerConnected]] |Syntax= | | [code, params]] call [[BIS_fnc_onPlayerConnected]] |Syntax= | ||
Line 29: | Line 26: | ||
|exec= spawn |Execution= | |exec= spawn |Execution= | ||
---> | ---> | ||
|x1= <code>[ | |x1= <code>[ | ||
Line 38: | Line 34: | ||
"Parameter" | "Parameter" | ||
] [[call]] [[BIS_fnc_onPlayerConnected]];</code>|Example 1= | ] [[call]] [[BIS_fnc_onPlayerConnected]];</code>|Example 1= | ||
| [[onPlayerConnected]], [[BIS_fnc_addStackedEventHandler]], [[Event Scripts]] |See also= | | [[onPlayerConnected]], [[BIS_fnc_addStackedEventHandler]], [[Event Scripts]] |See also= |
Revision as of 23:51, 16 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