BIS fnc onPlayerConnected: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3") |
Lou Montana (talk | contribs) m (Text replacement - "\[ +" to "[") |
||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.00 | |||
|1.00 | |||
|gr1= Multiplayer | |gr1= Multiplayer | ||
Line 11: | Line 10: | ||
|descr= Executes a function on server every time a player connects the mission. | |descr= Executes a function on server every time a player connects the mission. | ||
|s1=[code, params]] call [[BIS_fnc_onPlayerConnected]] | |s1= [code, params]] call [[BIS_fnc_onPlayerConnected]] | ||
|p1= code: [[Code]] or [[String]] - | |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]] - | |p2= params: [[Anything]] - parameters passed to the code or function | ||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
|x1= < | |x1= <sqf>[ | ||
{ | { | ||
params ["_player", "_params"]; | |||
hint name _player; hint _params; | |||
}, | }, | ||
"Parameter" | "Parameter" | ||
] | ] call BIS_fnc_onPlayerConnected;</sqf> | ||
|seealso= [[onPlayerConnected]] | |seealso= [[onPlayerConnected]] [[BIS_fnc_addStackedEventHandler]] [[Event Scripts]] | ||
}} | }} |
Latest revision as of 18:16, 8 November 2023
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:
- 0: Player
- 1: Params
- params: Anything - parameters passed to the code or function
- Return Value:
- Boolean
Examples
- Example 1:
Additional Information
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