Ammo

When it was necessary to start worrying about ammo in my last game I noticed that there weren’t really any starting points for what to do and how to do it.

It’s pretty important for any shooter and kind of a tricky topic to figure out by yourself so I figured I’d make one here.

So please post any and all information you may have on the topic.

Ex.

Where to Start?

Tutorials?

Methods?

Display Ammo Left?

Reload?

Example Scripts?

Anything that relates.
And thanks for your contribution.

This looks more like a forum topic, but...

You should start writing down details like:

  • What type of ammunition is being used?
  • What kind of weapon is being used?
  • Can the weapon reload, or it generates it's own ammo (like an energy weapon)?
  • If it can, how fast can it reload?
  • Maximum ammunition?
  • Can the weapon execute an alternate fire (think of it like some kind of charge shot)?

Here are some things that helped me:

Tutorials :

http://unity3d.com/support/resources/tutorials/fpstutorial.html

Unity Answers :

http://answers.unity3d.com/questions/60383/what-does-the-ammo-count-script-mean-.html

Forum Topics:

http://forum.unity3d.com/threads/88926-Trying-to-make-a-shothun-pick-up-and-use-ammo-clips

http://forum.unity3d.com/threads/58605-Limited-Ammo-Script

http://forum.unity3d.com/threads/40589-Bullet-ammunition

http://forum.unity3d.com/threads/23981-How-to-script-ammo-for-weapons

http://forum.unity3d.com/threads/96070-New-To-Scripting