Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » FREE Project Downloads & Recources » Scripts » Weapon Switching Script

Weapon Switching Script

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Weapon Switching Script on Thu Jan 22, 2015 1:42 pm

VicTore UpZombieZ


Member [Lv. 2]
Member [Lv. 2]
I found this excellent script, I didn't make.
[You must be registered and logged in to see this link.]

If anyone is wondering...... you have to create an empty and sometime has to rotate the empty, put the script and then drag what guns you want



Cool

View user profile

2 Re: Weapon Switching Script on Fri Jan 23, 2015 5:48 pm

Great share!

View user profile http://www.youtube.com/user/misterninjaboy

3 Script update on Mon Mar 30, 2015 1:47 am

lopiky1


Member [Lv. 0]
Member [Lv. 0]
I fixed this script to work with Unity 5 c:

Code:

var gun1 : GameObject;
var gun2 : GameObject;
 
 function Update(){
 if(Input.GetButtonDown("SwitchWeapons"))
   SwapWeapons();
 }
 
 function SwapWeapons(){
 if (gun1.active == true) {
 gun1.SetActive(false);
 gun2.SetActive(true);
 } else {
 gun1.SetActive(true);
 gun2.SetActive(false);
 }
 }

View user profile

4 Re: Weapon Switching Script on Tue Jul 07, 2015 6:40 pm

Outboundstream4


Member [Lv. 2]
Member [Lv. 2]
Personally unity 5 lags me out so i stuck with unity 4.6.2 not really missing out on much

also thanks for the script!



Last edited by Outboundstream4 on Tue Jul 07, 2015 6:41 pm; edited 1 time in total (Reason for editing : forgot to put something in)

View user profile

5 Re: Weapon Switching Script on Wed Jul 08, 2015 6:55 am

developer23


Moderator
Moderator
I already made a switch weapon script,but is useful thanks

View user profile http://masterdevelopers.altervista.org/

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum