BIS fnc onPlayerConnected: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
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 00:51, 17 January 2021

Hover & click on the images for description

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:
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

See also:
onPlayerConnectedBIS_fnc_addStackedEventHandlerEvent Scripts

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

Notes

Bottom Section