WarCraft: Source

 

registerTeam

Page history last edited by freddukes@... 1 yr ago

 registerTeam


This is a command so you can register the race to only be available when you join a specific team, either 'T' or 'CT'... This way, (this is just an example), You can make an 'evil class' and assign it to the terrorists, and a good class and assign it to the Counter-Terrorists.

 

The correct syntax is:

 

wcs.Race('My Race Name').registerTeam(<team number or team name>)

 

  • Team number or team neam - This is the team that the class will be registered to. You can either use 2 (terrorists), 3 (counter-Terrorists), 'CT' or 'T'... There is no difference between 'CT' or 3, they both register the team to the Counter-Terrorists. The skill recognises both types of formats.

Example:

 

race = wcs.Race('Evil Class!')

race.registerTeam('T')

 

race2 = wcs.Race('Nice class!')

race.registerTeam(3)

 


Note: If you want the class to be available for both teams, do NOT use this command!

 

Comments (0)

You don't have permission to comment on this page.