Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0
Sign in to follow this  
BioWarfare Gaming

Best way to do this

Question

Ok,

 

Basically i want to Have a AI follow me simple i can do that but what i want is to be able to control him, not in the sense that i press down key and switch player. But press down a key say Y and get a command wheel appear bit like what you find in dota 2! but will have functions like Attack, Cease Fire, Move, Hold ect.

 

What would be the best method to do this keeping him as a AI or give him a controller?

 

Or do it as a boolean and have the script True to follow False to Hold,

 

also dont want him to attack unless told?

 

Could some one give me a example of scripting please.

Please login or register to see this code.

Ok so thinking a script like this attached to each Aspect of the command wheel

Except i wouldnt need the,

if (Input.GetButtonDown ("q"))

 

as would be using command wheel,

 

And editing OcularCash Weapon Wheel script to be the command wheel, but this is where i need the most help. 

  • Like 1

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×