BIS fnc onPlayerConnected: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
| arma3


|1.00|Game version=
|1.00


|gr1 = Multiplayer |GROUP1=
|gr1 = Multiplayer


|gr2 = Event Handlers |GROUP2=
|gr2 = Event Handlers


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


| [code, params]] call [[BIS_fnc_onPlayerConnected]] |Syntax=
| [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:
*0: [[player|Player]]
*0: [[player|Player]]
*1: Params |Parameter 1=
*1: Params


|p2= params: [[Anything]] - Parameters passed to the code or function|Parameter 2=
|p2= params: [[Anything]] - Parameters passed to the code or function




| [[Boolean]] |Return value=
| [[Boolean]]


<!---
<!---
Line 33: Line 33:
  },  
  },  
  "Parameter"  
  "Parameter"  
] [[call]] [[BIS_fnc_onPlayerConnected]];</code>|Example 1=
] [[call]] [[BIS_fnc_onPlayerConnected]];</code>


| [[onPlayerConnected]], [[BIS_fnc_addStackedEventHandler]], [[Event Scripts]] |See also=
| [[onPlayerConnected]], [[BIS_fnc_addStackedEventHandler]], [[Event Scripts]]
}}
}}



Revision as of 00:37, 18 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

Bottom Section