Last active
August 29, 2015 14:26
-
-
Save AgentRev/cd502e1a64cd30203932 to your computer and use it in GitHub Desktop.
applyPlayerInfo.sqf - GearLevel for Mokey
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ****************************************************************************************** | |
| // * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com * | |
| // ****************************************************************************************** | |
| // @file Name: applyPlayerInfo.sqf | |
| // @file Author: AgentRev | |
| // This is where you load custom player variables that must persist between deaths | |
| private ["_data", "_name", "_value"]; | |
| _data = _this; | |
| { | |
| _name = _x select 0; | |
| _value = _x select 1; | |
| switch (_name) do | |
| { | |
| //case "Donator": { player setVariable ["Donator", _value > 0] }; // deprecated | |
| //case "BankMoney": { player setVariable ["bmoney", _value max 0, true] }; // NOTE: Bank money assignation has been moved server-side | |
| case "GearLevel": { player setVariable ["gearLevel", _value] }; | |
| }; | |
| } forEach _data; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I sent you a detailed PM on the A3W forums.
http://forums.a3wasteland.com/index.php?topic=1931.msg12945#msg12945