Skip to content

Instantly share code, notes, and snippets.

@AgentRev
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save AgentRev/cd502e1a64cd30203932 to your computer and use it in GitHub Desktop.

Select an option

Save AgentRev/cd502e1a64cd30203932 to your computer and use it in GitHub Desktop.
applyPlayerInfo.sqf - GearLevel for Mokey
// ******************************************************************************************
// * 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;
@MokeyBytes
Copy link
Copy Markdown

I sent you a detailed PM on the A3W forums.

http://forums.a3wasteland.com/index.php?topic=1931.msg12945#msg12945

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment