Jump to content

coins on kill dzms/wicked ai


nova

Recommended Posts

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 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

@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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...