SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF2 Modding => Topic started by: CrazyGentleman on January 21, 2017, 06:33:27 AM

Title: Restricting a class to the player[Solved]
Post by: CrazyGentleman on January 21, 2017, 06:33:27 AM
Hello,

As the title already mentions it, how do I go about restricting a class to only the player?

Thanks in advance,

CrazyGentleman
Title: Re: Restricting a class to the player
Post by: Anyder on January 21, 2017, 06:47:32 AM
Look at the mission lua and remove the amount of bots per class.
Title: Re: Restricting a class to the player
Post by: CrazyGentleman on January 21, 2017, 11:48:39 AM
Okay, thanks! . Just to be sure, if I had for example: AddUnitClass("imp_inf_501stormtrooper",0,0). Which number would be the amount of bots?

Kind regards,

CrazyGentleman
Title: Re: Restricting a class to the player
Post by: Ascertes on January 21, 2017, 12:51:22 PM
Quote from: CrazyGentleman on January 21, 2017, 11:48:39 AM
Okay, thanks! . Just to be sure, if I had for example: AddUnitClass("imp_inf_501stormtrooper",0,0). Which number would be the amount of bots?

Kind regards,

CrazyGentleman

The first one. The second number refers to the unit cap IIRC, like for example how there can only be 4 jet troopers, etc. at a time.
Title: Re: Restricting a class to the player
Post by: CrazyGentleman on January 21, 2017, 02:19:18 PM
Quote from: Ascertes on January 21, 2017, 12:51:22 PM
The first one. The second number refers to the unit cap IIRC, like for example how there can only be 4 jet troopers, etc. at a time.

That makes more sense now, thank you kindly for the explanation! Issue hereby solved!

Kind regards,

CrazyGentleman
EhPortal 1.34 © 2024, WebDev