Jump to content
nova

coins on kill dzms/wicked ai

Recommended Posts

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. 

Share this post


Link to post
Share on other sites

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 

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites
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];

 

Share this post


Link to post
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;

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...