35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
#include "script_component.hpp"
|
|
|
|
/*
|
|
* Function: xpdb_load_fnc_player
|
|
* Author: NikolaiF90, J.Schmidt
|
|
* Edit: 07.27.2024
|
|
* Copyright © 2024 NikolaiF90, J.Schmidt, All rights reserved
|
|
*
|
|
* Do not edit without permission!
|
|
*
|
|
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivative 4.0 International License.
|
|
* To view a copy of this license, vist https://creativecommons.org/licenses/by-nc-nd/4.0/ or send a letter to Creative Commons,
|
|
* PO Box 1866, Mountain View, CA 94042
|
|
*
|
|
* [Description]
|
|
* Load player data from specified slot and setup player.
|
|
*
|
|
* Arguments:
|
|
* 0: ID of Slot <SCALAR> (default: 0)
|
|
*
|
|
* Return Value:
|
|
* N/A
|
|
*
|
|
* Examples:
|
|
* [1] call xpdb_load_fnc_player
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
params [["_slot", nil, [0]]];
|
|
|
|
[EGVAR(db,debug), "xpdb_load_fnc_player", format ["Loading player data from slot '%1'.", _slot], false] call EFUNC(utils,debug);
|
|
|
|
private _unitData = ["player", _slot] call EFUNC(core,loadData);
|
|
[player, _unitData, objNull] call DFUNC(unitData); |