BIS fnc onPlayerConnected: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (pf)
Line 1: Line 1:
{{Function|Comments=
____________________________________________________________________________________________


{{Function|= Comments
| arma3 |Game name=
 
|1.00|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| Executes a function on server every time a player connects the mission.|Description=
 
|1.00|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| [code, params]] call [[BIS_fnc_onPlayerConnected]] |Syntax=


Description:
Executes a function on server every time a player connects the mission.
Passed arguments are [player:Object,arguments]


Parameter(s):
|p1= code: [[Code]] or [[String]] - Function name or [[Code|code]] to be executed. Following parameters are passed to the function or code:
0: STRING or CODE - function variable or code to be executed
*0: [[player|Player]]
1: ANY - optional arguments passed to the function
*1: Params |Parameter 1=
Returns:
BOOL
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|p2= params: [[Anything]] - Parameters passed to the code or function|Parameter 2=
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_onPlayerConnected]]; --> |= Syntax


|p1= |= Parameter 1
| [[Boolean]] |Return value=


| |= Return value
<!---
|exec= spawn |= Execution
--->
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>[
{
  [[params]] ["_player", "_params"];
  [[hint]] [[name]] _player; [[hint]] _params;
},
"Parameter"
] [[call]] [[BIS_fnc_onPlayerConnected]];</code>|Example 1=
____________________________________________________________________________________________
____________________________________________________________________________________________


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



Revision as of 01:01, 17 June 2018

Hover & click on the images for description

Description

Description:
Executes a function on server every time a player connects the mission.
Execution:
call
Groups:
Uncategorised

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