Page 1 of 1

How do I make a Humun only class

Posted: Fri Jun 19, 2015 10:00 pm
by Lorul1
Is there a way how I can make one of my units only playable by a human without making him a "hero".
I've set the max for this unit to 1 but I've noticed sometimes a "computer player" (AI AKA NPC) will take this spot.

Re: How do I make a Humun only class

Posted: Sat Jun 20, 2015 3:59 am
by DroidekaWarrior
Try making min/max 0 and 0.
Human can use it but restricted for bots.

Re: How do I make a Humun only class

Posted: Sat Jun 20, 2015 4:23 am
by Anakin
MAybe you can check with an lua script if the player is a human or not. And if it is not a human you kill him.

Re: How do I make a Humun only class

Posted: Sat Jun 20, 2015 1:58 pm
by Lorul1
setting the two numbers to zero does not work because it says "there are to many units"

so how do I set up the scrip like your saying Anakin

Re: How do I make a Humun only class

Posted: Sat Jun 20, 2015 1:59 pm
by razac920
The numbers are a cap for humans as well if there is a point limit

Re: How do I make a Humun only class

Posted: Sat Jun 20, 2015 2:35 pm
by Lorul1
I forgot to tell you guys , my unit is unlocked through points so for some reason when his numbers are " 0, 0 "
and when he's unlocked through points it says "there are to many units"

Re: How do I make a Humun only class

Posted: Sun Jun 21, 2015 7:33 pm
by [RDH]Zerted
A better (but harder) way than killing any AI that spawns as the wrong unit would be to move all AI onto a 3rd team that's an ally of the first.

However there should be a way to get it working without the trickery.

Re: How do I make a Humun only class

Posted: Mon Jun 22, 2015 4:05 am
by nobody3
remove pointtounlock from unit odf...

Re: How do I make a Humun only class

Posted: Mon Jun 22, 2015 4:04 pm
by Lorul1
:funny2:
I don't wanna remove the point lock that's the thing,

I guess its ok if one of these units are running around at times.
thanks for the help everyone