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 » TitanFall Like Robot Script

TitanFall Like Robot Script

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

1 TitanFall Like Robot Script on Sun Apr 06, 2014 4:41 pm

BryceCain25


SUPER MODERATOR
SUPER MODERATOR
Hello Everyone!
Today I have made a script that allows the basic script for a titan..now the following script will require some components, just look at the script and find them..
I did in fact make ALL of this script, no yelling..
Make sure you have a block animation, bullet animation and missile animation.
This will in fact switch cameras on button press, it will also disable the player. PLUS it will make a shake animation once entering the titan
This script took me a while to think out Neutral
anyways, if you would like to get a full project of this i will eventually make a full entire project detailing and instructing every line of code
Thank you for your support
-Bryce Cain 25


Code:
var spawnLocation : Vector3;
var missileanime : Animation;
var blockanime : Animation;
var hitanime : Animation;
var maincamera : Camera;
var titancamera : Camera;
var shakeanime : Animation;
var character : CharacterController;
function Start () {
character.GetComponent(CharacterController);
}

function Update () {
if(Input.GetMouseButtonDown(1)) {
hitanime.Play();
Instantiate(prefabToSpawn, spawnLocation, Quaternion.identity);
Debug.Log("Hit animation played..");
}
if(Input.GetMouseButtonDown(2)) {
blockanime.Play();
Debug.Log("Block Anime Played");
}
if(Input.GetMouseButtonDown(0)) {
missileanime.Play();
Debug.Log("Played Missile Anime");
}
}
function OnTriggerEnter () {
shakeanime.Play();
character.enabled = false;
maincamera.enabled = false;
titancamera.enabled = true;
}



Last edited by BryceCain25 on Sun Apr 06, 2014 4:48 pm; edited 1 time in total

View user profile

2 Re: TitanFall Like Robot Script on Sun Apr 06, 2014 4:44 pm

BryceCain25


SUPER MODERATOR
SUPER MODERATOR
woops! Don't import this script! I still have to test

View user profile

3 Re: TitanFall Like Robot Script on Sun Apr 06, 2014 4:49 pm

BryceCain25


SUPER MODERATOR
SUPER MODERATOR
Alright! Fixed! There should be no problems.

View user profile

4 Re: TitanFall Like Robot Script on Sun Apr 06, 2014 4:50 pm

BryceCain25


SUPER MODERATOR
SUPER MODERATOR
BryceCain25 wrote:Alright! Fixed! There should be no problems.
Uhhh...i should update this to where it spawns off of a transform..DANG IT!! Ow well..

View user profile

5 Re: TitanFall Like Robot Script on Sun Apr 06, 2014 5:50 pm

MusicKing7


{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
Sure, I'll use this script. Thanks for the PM on it! I'll keep it until I make some animations like that.

EDIT: This is my 100th post!



Last edited by MusicKing7 on Sun Apr 06, 2014 5:56 pm; edited 1 time in total

View user profile

6 Re: TitanFall Like Robot Script on Sun Apr 06, 2014 5:55 pm

BryceCain25


SUPER MODERATOR
SUPER MODERATOR
MusicKing7 wrote:Sure, I'll use this script. Thanks for the PM on it! I'll keep it until I make some animations like that.
Ok Smile I'm glad that you got the PM
it took me a long time to think through the script. I also made some other scripts in the scripts section today. Go check it out

View user profile

7 Re: TitanFall Like Robot Script on Mon Apr 07, 2014 9:49 am

developer23


Moderator
Moderator
thank you Very Happy , will be useful in the future, sorry if I write bad English but I am Italian Wink

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

8 Re: TitanFall Like Robot Script on Mon Apr 07, 2014 5:36 pm

BryceCain25


SUPER MODERATOR
SUPER MODERATOR
developer23 wrote:thank you Very Happy, will be useful in the future, sorry if I write bad English but I am Italian Wink
lol thanks Wink
Its totally ok! It doesn't matter how well you speak english as long as we communicate and learn programming, im fine Wink

View user profile

9 Re: TitanFall Like Robot Script on Tue Apr 08, 2014 6:32 am

developer23


Moderator
Moderator
Very Happy

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

10 Re: TitanFall Like Robot Script on Wed Apr 09, 2014 5:59 am

MusicKing7


{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
BryceCain25 wrote:
developer23 wrote:thank you Very Happy, will be useful in the future, sorry if I write bad English but I am Italian Wink
lol thanks Wink
Its totally ok! It doesn't matter how well you speak english as long as we communicate and learn programming, im fine Wink
Congrats on SuperMod Bryce!

View user profile

11 Re: TitanFall Like Robot Script on Wed Apr 09, 2014 8:42 pm

BryceCain25


SUPER MODERATOR
SUPER MODERATOR
MusicKing7 wrote:
BryceCain25 wrote:
developer23 wrote:thank you Very Happy, will be useful in the future, sorry if I write bad English but I am Italian Wink
lol thanks Wink
Its totally ok! It doesn't matter how well you speak english as long as we communicate and learn programming, im fine Wink
Congrats on SuperMod Bryce!
Smile thanks, I couldn't have done it without Misterninjaboy

View user profile

12 Re: TitanFall Like Robot Script on Thu Apr 10, 2014 6:26 am

MusicKing7


{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
BryceCain25 wrote:
MusicKing7 wrote:
BryceCain25 wrote:
developer23 wrote:thank you Very Happy, will be useful in the future, sorry if I write bad English but I am Italian Wink
lol thanks Wink
Its totally ok! It doesn't matter how well you speak english as long as we communicate and learn programming, im fine Wink
Congrats on SuperMod Bryce!
Smile thanks, I couldn't have done it without Misterninjaboy
Also, I never even knew there was a rank of SuperMod  Shocked

View user profile

13 Re: TitanFall Like Robot Script on Thu Apr 10, 2014 4:18 pm

BryceCain25


SUPER MODERATOR
SUPER MODERATOR
MusicKing7 wrote:
BryceCain25 wrote:
MusicKing7 wrote:
BryceCain25 wrote:
developer23 wrote:thank you Very Happy, will be useful in the future, sorry if I write bad English but I am Italian Wink
lol thanks Wink
Its totally ok! It doesn't matter how well you speak english as long as we communicate and learn programming, im fine Wink
Congrats on SuperMod Bryce!
Smile thanks, I couldn't have done it without Misterninjaboy
Also, I never even knew there was a rank of SuperMod  Shocked
it was a special rank, I don't know if he will give it to anyone else

View user profile

14 Re: TitanFall Like Robot Script on Fri Apr 11, 2014 6:01 am

MusicKing7


{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
Lol, Im gonna stop quoting because it's like spam XD. Anyways great job with the script.

View user profile

15 Re: TitanFall Like Robot Script on Fri Apr 11, 2014 6:11 pm

BryceCain25


SUPER MODERATOR
SUPER MODERATOR
MusicKing7 wrote:Lol, Im gonna stop quoting because it's like spam XD. Anyways great job with the script.
thanks! Tell me if there is any errors Smile

View user profile

16 Re: TitanFall Like Robot Script on Sun Dec 28, 2014 2:50 pm

pureredneckgenius


Member [Lv. 0]
Member [Lv. 0]
I have tried and tried would you please please make a basic project

View user profile

17 Re: TitanFall Like Robot Script on Tue Dec 30, 2014 11:28 pm

BryceCain25


SUPER MODERATOR
SUPER MODERATOR
pureredneckgenius wrote:I have tried and tried would you please please make a basic project
I will try, time is kinda limited atm, but yes I will try and make a base project, this doesn't really apply to the actual mesh of which the script is attached to the gameobject with this project, more of what is spawned in...fairly easy if you'd like guidance while I make the project

View user profile

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