BIS fnc onPlayerConnected: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <!--- |exec= spawn --->" to "")
m (Text replacement - " \| *(\[[^ ]+\] (call|spawn) ('''|\[\[)BI(N|S)_fnc_[a-zA-Z0-9_]+('''|\]\]));? \| *p1 *=" to " |s1=$1 |p1=")
Line 11: Line 11:
| Executes a function on server every time a player connects the mission.
| Executes a function on server every time a player connects the mission.


| [code, params]] call [[BIS_fnc_onPlayerConnected]]
|s1=[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:

Revision as of 20:29, 12 June 2021

Hover & click on the images for description

Description

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