Adding Money to Crates

You can now set a variable called "DMS_CrateMoney" on a reward container to set/increase how much money it provides (once the container is actually "filled").
This commit is contained in:
eraser1 2018-11-05 22:07:09 -06:00
parent 6f80d87662
commit 4255de3836

View File

@ -317,3 +317,10 @@ if (_crate getVariable ["DMS_AllowSmoke", true]) then
_marker attachTo [_crate, [0,0,0.5]];
};
};
_crate setVariable
[
"ExileMoney",
(_crate getVariable ["ExileMoney", 0]) + (_crate getVariable ["DMS_CrateMoney", 0]),
true
];