• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges

Gun Script

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

AbandonedCrypt answered

How to make a shotgun boost effect?

Mar 16, '21 gun script·forces

2 Replies

0 Votes

avatar image

JudeJeremy edited

Animation clip only plays once when button is pressed, and then will not play again

Mar 5, '21 in Help Room

2 Replies

0 Votes

avatar image

unity_ek98vnTRplGj8Q answered

How to make a bullet spread

Mar 4, '21 bullet·gun script·spread

1 Reply

0 Votes

avatar image

zafranalon asked

hi, i am making a retro game and i have an enemy, and i also have a shoot animation, but whenever i click the mouse the enemy dies, i only want it to be on the animation, how do i do it?

Feb 14, '21 in Help Room

0 Replies

0 Votes

avatar image

SkillcraftHD commented

2d how to make a recoil for the player with the gun?

Jan 30, '21 in Help Room

0 Replies

0 Votes

avatar image

deqnboom edited

Basic damage script is not working

Jan 24, '21 in Help Room

0 Replies

0 Votes

avatar image

Will-Urquhart asked

How do I fire a laser at the player's Y level.

Dec 30, '20 in Help Room

0 Replies

0 Votes

avatar image

sacredgeometry edited

when float is less then zero, do action once

Dec 29, '20 button·3d·gun·aim·gun script

1 Reply

0 Votes

avatar image

emiratakans asked

i want my hero can do auto aim or auto shooting

Nov 10, '20 in Help Room

0 Replies

0 Votes

avatar image

Gabimela asked

How do you get the R1 and R2 buttons to work on the PS4?

Nov 9, '20 c#·unity5·controller·unityeditor·gun script

0 Replies

0 Votes

avatar image

jamesorion44 asked

Gun won't face target

Oct 28, '20 in Help Room

0 Replies

0 Votes

avatar image

rhapen commented

Shoot nearest enemy with raycast

Oct 28, '20 scripting problem·raycast·3d·gun script

1 Reply

0 Votes

avatar image

wewewu commented

Particle System isn't playing

Oct 27, '20 scripting problem·particlesystem·gun script

1 Reply

0 Votes

avatar image

kmay11005 edited

How to create recoil/bullet spread for weapon?

Oct 19, '20 in Help Room

0 Replies

0 Votes

avatar image

Danteb132 asked

Ammo changing between guns

Oct 7, '20 in Help Room

0 Replies

0 Votes

avatar image

Siliko answered

I've been trying to make a gun script, but somehow the boolean to tell when the bullet is destroyed doesent work

Sep 12, '20 in Help Room

1 Reply

0 Votes

avatar image

DirtyOldSkunk asked

transform.LookAt() makes object flip around when too close? (FPS Gun Position Question)

Sep 11, '20 in Help Room

0 Replies

0 Votes

avatar image

Cronoss95 published

Upgrade Weapon Stats on Different Script

Aug 24, '20 in Help Room

0 Replies

0 Votes

avatar image

Ognjen_2008 asked

3D Side Scroller Gun PickUp

Aug 3, '20 in Help Room

0 Replies

0 Votes

avatar image

HappyPixel27 commented

Make Bullet Shoot Properly

Jul 17, '20 gun script

1 Reply

0 Votes

avatar image

nedepoop answered

Why does my full auto gun script not work?

Jul 11, '20 in Help Room

3 Replies

0 Votes

avatar image

SoMir1 asked

How to remove recoil when not shooting?

Jun 22, '20 gun·mouselook·gun script·recoil·recovery

0 Replies

0 Votes

avatar image

KAYLEyPOO published

gun script not working

Jun 15, '20 in Help Room

0 Replies

0 Votes

avatar image

Aduis edited

How can I shoot bullets that you can aim with the crosshair?

May 29, '20 scripting problem·fps·shooting·gun·gun script

1 Reply

0 Votes

avatar image

MunchinBen published

HELP 2D Top Down Shooter Bullets Only go Horizontal

May 26, '20 in Help Room

0 Replies

0 Votes

avatar image

UnityToMakeMoney commented

Raycast origin random

May 13, '20 raycast·gun·gun script·origin·randomly

0 Replies

0 Votes

avatar image

beatdown0312 commented

Weapon Audio Playing When Swapping Guns

Apr 25, '20 audio·fps·gun script

1 Reply

0 Votes

avatar image

al361910 published

replacing guns and knife

Apr 16, '20 fps·gun script·gunfire

0 Replies

0 Votes

avatar image

xxx69bobsandvegene420xxx published

i cant seem to destroy the equipped weapon and i dont know why,I cant seem to destroy my equipped Weapon, is there a mistake?

Apr 14, '20 gun script

0 Replies

0 Votes

avatar image

bloxcool4 published

Rotation Flicker in 2d platformer gun

Mar 28, '20 in Help Room

0 Replies

0 Votes

  • 1
  • 2
  • 3
  • 4
  • 5
  • ›

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Related Topics

gun c# shooting scripting problem fps raycast ammo gunfire bullet gun position bullets reload gun movement guns animation damage error instantiate 2d game shoot 3d reloading error message first person shooter recoil


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges