BIS fnc onPlayerConnected: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (pf) |
||
Line 1: | Line 1: | ||
{{Function|Comments= | |||
____________________________________________________________________________________________ | |||
| arma3 |Game name= | |||
|1.00|Game version= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Executes a function on server every time a player connects the mission.|Description= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [code, params]] call [[BIS_fnc_onPlayerConnected]] |Syntax= | ||
|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]] | |||
*1: Params |Parameter 1= | |||
* | |||
|p2= params: [[Anything]] - Parameters passed to the code or function|Parameter 2= | |||
| | | [[Boolean]] |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= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | | [[onPlayerConnected]], [[BIS_fnc_addStackedEventHandler]], [[Event Scripts]] |See also= | ||
}} | }} | ||
Revision as of 01:01, 17 June 2018
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:
- 0: Player
- 1: Params
- 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
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