Jump to content
FabioSICasper

INCREASE THE GOLD QUANTITY FEDERAL RESERVE

Recommended Posts

Life_server init.sqf:

/* Set the amount of gold in the federal reserve at mission start */
fed_bank setVariable ["safe",count playableUnits,true];
[] spawn TON_fnc_federalUpdate;

 

fn_federalUpdate.sqf

_funds = fed_bank getVariable ["safe",0];
fed_bank setVariable ["safe",round(_funds+((count playableUnits)/2)),true];

 

  • Thanks 1

Share this post


Link to post
Share on other sites
On 7/19/2019 at 11:02 PM, AngryHerring ッ ®™ said:

Life_server init.sqf:

/* Set the amount of gold in the federal reserve at mission start */
fed_bank setVariable ["safe",count playableUnits,true];
[] spawn TON_fnc_federalUpdate;

 

fn_federalUpdate.sqf

_funds = fed_bank getVariable ["safe",0];
fed_bank setVariable ["safe",round(_funds+((count playableUnits)/2)),true];

 

@imthatguyhere i know this may be a random mention, but i know you are a extremely smart and knowledgeble individual, do you or anybody else know which numbers i am supposed to change? i am using 5.0. i tried changing the numbers in a couple of places, but none of them worked.

everything else in the federal reserve works as it should, but im not getting anything from it.

thank you in advance for answers :)

@AngryHerring ッ ®™

@FabioSICasper

might aswell mention you guys aswell since its your posts=P

i am a noob btw, please help

My fn_federalUpdate.sqf

Spoiler

    _funds = fed_bank getVariable ["safe",0];
    fed_bank setVariable ["safe",round(_funds+((count playableUnits)/2)),true];

 

My init.sqf

Spoiler

fed_bank setVariable ["safe",count playableUnits,true];
[] spawn TON_fnc_federalUpdate;

 

Edited by plutogames
more mentions

Share this post


Link to post
Share on other sites
6 hours ago, dexatrin82 said:

depends on how much you want it to increase by or if you want it to start bigger. each way is different.

lets say i want 20 gold bars in the safe, where do i put that in?

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.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.