Jump to content

This may be a stupid question. What's the class name.


Recommended Posts

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

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 20this 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!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...