Quantcast
Channel: Questions in topic: "gun"
Viewing all articles
Browse latest Browse all 592

Problem with "if" statements

$
0
0
Hi. I have a problem with multiple items under an "if" statement. I want all of these to happen. Here's the code: function GunFX () { if(Input.GetMouseButtonDown(0) && canShoot == true) gunShotFX.active = true; yield WaitForSeconds(1); gunShotFX.active = false; audio.PlayOneShot(gunShotSound); }

Viewing all articles
Browse latest Browse all 592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>