This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

Seabass121

Newbie
  • Content count

    24
  • Joined

  • Last visited

Community Reputation

4 Neutral

About Seabass121

  • Rank
    Newbie
  • Birthday

Profile Information

  • Gender
    Male
  • Location:
    USA
  • Interests
    American Football, Game Development, Guitar.

Recent Profile Visitors

232 profile views
  1. I plan on adding more to this, that is why I put a separate function for this. This is just a test anyway. Thanks. Beginner question, how would it be different if I put this in just the update?
  2. Fixed! I put the variable in the wrong place. LOL.
  3. Ok, so here is my script now, using System.Collections; using System.Collections.Generic; using UnityEngine; public class Spawner : MonoBehaviour { public Transform spawnPoint; public GameObject[] objectToSpawn; float chance = Random.Range(0.0f, 1.0f); void Update() { SpawnObject(); } void SpawnObject() { if (Input.GetMouseButtonDown(0)) { if(chance >= 0.95f) // Legendary { Instantiate(objectToSpawn[4], spawnPoint.position, spawnPoint.rotation); } if (chance >= 0.8f && chance < 0.95f) // Very Rare { Instantiate(objectToSpawn[3], spawnPoint.position, spawnPoint.rotation); } if (chance >= 0.65f && chance < 0.8f) // Rare { Instantiate(objectToSpawn[2], spawnPoint.position, spawnPoint.rotation); } if (chance >= 0.5f && chance < 0.65f) // Uncommon { Instantiate(objectToSpawn[1], spawnPoint.position, spawnPoint.rotation); } if (chance > 0.1f && chance < 0.5f) // Common { Instantiate(objectToSpawn[0], spawnPoint.position, spawnPoint.rotation); } } } } Every Time I launch, It gives the random value, then when I click, it only gives me that chance throughout the entire thing until I launch again.
  4. Thanks so much gecko. I plan on using the au fps kit to attempt to make a borderlands style game, but obviously not as complex.
  5. I need help with a borderlands type loot system. I have made 5 cubes, and named them common, uncommon, rare, very rare, and legendary. I put the objects in to an array. I want common to be the most common chance of getting, and legendary to be the rarest. How would I go about doing that? I'm new to programming, so don't make fun of me if it is easy. Here is what I have so far: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Spawner : MonoBehaviour { public Transform spawnPoint; public GameObject[] objectToSpawn; void Update() { SpawnObject(); } void SpawnObject() { if (Input.GetMouseButtonDown(0)) { Instantiate(objectToSpawn[Random.Range(0, objectToSpawn.Length)], spawnPoint.position, spawnPoint.rotation); } } } If you could help, that would be great.
  6. Some people really need to learn how to google. http://alexstv.com/index.php/posts/unity-voxel-block-tutorial
  7. Figured it out. I forgot to put the ai controller script. LOL
  8. Still no luck. I have been able to kill it, I can't figure out why it can't move. I may have skipped over some of your steps.
  9. Yes.
  10. Does not work. I am using fps kit 1.5 c#. The agents won't move, I put the target script on my player. I baked the scene. Made sure the teams were different.
  11. Opps. Verts : 3, 219 Faces : 3, 104 Tris : 6, 455
  12. This is my second model. I think this is way better that the scar I made a few weeks ago. Here are some pictures: Is is made in blender. If there is anything I can add or fix, tell me. It can be used commercially, because it is my second model, but credit me. Download : https://mega.nz/#!bhMBWarS Key : !EDNOmAo8zfamkzm4_5xpece0wRmzYLOIKpuVRl0ZMLs Thanks. Verts : 3, 219 Faces : 3, 104 Tris : 6, 455
  13. You need winrar, the password to extract it is armedunity.
  14. I sure as hell would have.
  15. I was gonna use for a boss battle, lol. Oh well. Just tuo spoky 4 u?