nova Posted August 14, 2019 Report Share Posted August 14, 2019 Hello. Is there a way to add coins on kill for the dzms and the wicked ai? i have the check wallet but I think it would be cool to get the coins instantly when you kill the a.i. Link to comment Share on other sites More sharing options...
Mig Posted August 15, 2019 Report Share Posted August 15, 2019 Hello, see here for DZMS: https://github.com/MigSDev5/DZMS-MissionSystem for WAI ,open on_kill.sqf file . add this in the private array : ,"_playerCoins" after this : _launcher = secondaryWeapon _unit; add this line: _playerCoins = _player getVariable [Z_MoneyVariable,0]; and after : _unit setVariable[Z_MoneyVariable,_cash ,true]; add this line: _player setVariable [Z_MoneyVariable,(_playerCoins + _cash),true]; Done nova 1 Link to comment Share on other sites More sharing options...
Reaper5150 Posted August 15, 2019 Report Share Posted August 15, 2019 4 hours ago, Mig said: Hello, see here for DZMS: https://github.com/MigSDev5/DZMS-MissionSystem for WAI ,open on_kill.sqf file . add this in the private array : ,"_playerCoins" after this : _launcher = secondaryWeapon _unit; add this line: _playerCoins = _player getVariable [Z_MoneyVariable,0]; and after : _unit setVariable[Z_MoneyVariable,_cash ,true]; add this line: _player setVariable [Z_MoneyVariable,(_playerCoins + _cash),true]; Done Where do I add the amount of coins given? I like this idea. nova 1 Link to comment Share on other sites More sharing options...
Mig Posted August 15, 2019 Report Share Posted August 15, 2019 1 hour ago, Reaper5150 said: Where do I add the amount of coins given? I like this idea. _player setVariable [Z_MoneyVariable,(_playerCoins + 10),true]; nova 1 Link to comment Share on other sites More sharing options...
nova Posted August 15, 2019 Author Report Share Posted August 15, 2019 you people are beautiful!!! thanks alot i appreciate it Link to comment Share on other sites More sharing options...
nova Posted August 16, 2019 Author Report Share Posted August 16, 2019 @Mig is it possible to add randomness to the amount of money you get per kill? for example between 5k and 50k. Link to comment Share on other sites More sharing options...
nova Posted August 16, 2019 Author Report Share Posted August 16, 2019 @Mig is it possible to add randomness to the amount of money you get per kill? for example between 5k and 50k. nvm- found it // Coins Amount DZMSCoinsAmount = 100; // if you want a random amount, use this: DZMSCoinsAmount = round random 100; Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now