matt6950 Posted December 11, 2014 Report Share Posted December 11, 2014 For example. Here i have "ItemGoldBar","ItemGoldBar10oz" If I wanted to replace them with Gold Coins what would I type? this is for weapon creates. (IF that's even possible) Link to comment Share on other sites More sharing options...
Proximus Posted December 11, 2014 Report Share Posted December 11, 2014 All depends on which SC version you are using. I don't think it is possible with SC1.1 and 2.0 SC 3.0 however may work! Link to comment Share on other sites More sharing options...
matt6950 Posted December 11, 2014 Author Report Share Posted December 11, 2014 Using this one I also have a question regarding this If you want the AI to spawn variable values then add this: _cash = round(random 20) * 1000; // number between 0 and 20 000 What in that line specifies the 0 and the 20,000? What would I have to change to make that between 0 and 1000? Link to comment Share on other sites More sharing options...
Proximus Posted December 11, 2014 Report Share Posted December 11, 2014 Using this one I also have a question regarding this If you want the AI to spawn variable values then add this: _cash = round(random 20) * 1000; // number between 0 and 20 000 What in that line specifies the 0 and the 20,000? What would I have to change to make that between 0 and 1000? Then it is not possible to put coins in lootboxes. For your other question: round(random 20) this chooses a number between 0 and 20 and that number is being multiplied by 1000. So if you want the amount between 0 and 1000 you adjust the 20 to 10 and the *1000 to *100 Would look as the following: _cash = round(random 10) * 100 Hope this helps! matt6950 1 Link to comment Share on other sites More sharing options...
matt6950 Posted December 11, 2014 Author Report Share Posted December 11, 2014 Yeah that's great many thanks! Link to comment Share on other sites More sharing options...
Zupa Posted December 11, 2014 Report Share Posted December 11, 2014 What u also can do is Put the lootboxes in the storage array so people can store/get money from it. On missions spawn, give the boxes bankMoney after the box get created ( _box setVariable["bankMoney",20000,true];] 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