BIS fnc onPlayerConnected: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *P([a-gi-z ])" to "$1 - p$2")
m (Text replacement - "\[ +" to "[")
 
Line 20: Line 20:
|r1= [[Boolean]]
|r1= [[Boolean]]


|x1= <sqf>[  
|x1= <sqf>[
  {
  {
   params ["_player", "_params"];
   params ["_player", "_params"];

Latest revision as of 19:16, 8 November 2023

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:
onPlayerConnected BIS_fnc_addStackedEventHandler Event 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