How do I make a Humun only class

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

How do I make a Humun only class

Post 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.
DroidekaWarrior
Posts: 4
Joined: Fri Jun 12, 2015 11:04 pm
Projects :: No Mod project currently.
Games I'm Playing :: swbf2
xbox live or psn: No gamertag set

Re: How do I make a Humun only class

Post by DroidekaWarrior »

Try making min/max 0 and 0.
Human can use it but restricted for bots.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: How do I make a Humun only class

Post 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.
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

Re: How do I make a Humun only class

Post 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
razac920
2nd Lieutenant
2nd Lieutenant
Posts: 365
Joined: Sun Jan 16, 2011 12:42 am

Re: How do I make a Humun only class

Post by razac920 »

The numbers are a cap for humans as well if there is a point limit
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

Re: How do I make a Humun only class

Post 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"
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: How do I make a Humun only class

Post 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.
nobody3
Rebel Sergeant
Rebel Sergeant
Posts: 188
Joined: Wed Jun 15, 2011 8:30 am

Re: How do I make a Humun only class

Post by nobody3 »

remove pointtounlock from unit odf...
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

Re: How do I make a Humun only class

Post 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
Post Reply