BIS fnc onPlayerConnected: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
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(...)
m (Text replacement - "\[ +" to "[")
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


| arma3
|game1= arma3
|version1= 1.00


|1.00
|gr1= Multiplayer


|gr1 = Multiplayer
|gr2= Event Handlers


|gr2 = Event Handlers
|descr= Executes a function on server every time a player connects the mission.


| Executes a function on server every time a player connects the mission.
|s1= [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:
*0: [[player|Player]]
*0: [[player|Player]]
*1: Params
*1: Params


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


| [[Boolean]]
|r1= [[Boolean]]


<!---
|x1= <sqf>[
|exec= spawn
--->
 
|x1= <code>[  
  {
  {
   [[params]] ["_player", "_params"];  
   params ["_player", "_params"];
   [[hint]] [[name]] _player; [[hint]] _params;
   hint name _player; hint _params;
  },  
  },  
  "Parameter"  
  "Parameter"  
] [[call]] [[BIS_fnc_onPlayerConnected]];</code>
] call BIS_fnc_onPlayerConnected;</sqf>


| [[onPlayerConnected]], [[BIS_fnc_addStackedEventHandler]], [[Event Scripts]]
|seealso= [[onPlayerConnected]] [[BIS_fnc_addStackedEventHandler]] [[Event Scripts]]
}}
}}
[[Category:Functions|{{uc:onPlayerConnected}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:onPlayerConnected}}]]

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