Skip to content

WNP78/GunTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Gun for SimplePlanes

This is a simple gun with a rotating barrel, simple muzzle flash effect, sound effect, and stats identical to the minigun. Sound effect source

To make one yourself:

  • Create a normal part
  • Add the gun modifier
  • Add an AudioSource to the part object. Disable "Play On Awake", and enable "Loop". Set it up to play whatever effect you like.
  • Add a child GameObject called BulletStartPoint. The bullet will start wherever this is placed.
  • Add another child called MuzzleFlash. This should be inactive (the checkbox by the GameObject name at the top of the inspector) when you save it, and will be made active when the gun is firing. You can put, for instance, a particle system on there (enable looping and play on awake). Make sure it's inactive when you save.
  • Optionally add a child called SpinningBarrels. If you do, it will spin when firing like the barrels on the minigun.

About

A simple test / example of creating a working gun part in SimplePlanes. Unity 5.3.6f1

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published