TAMods  0.4
Customization mod for Tribes:Ascend
Classes | Functions
Loadouts.h File Reference

Go to the source code of this file.

Classes

struct  Equipment
 

Functions

Equipment equipment (string primary_weapon, string secondary_weapon, string belt_item, string pack, string primary_perk, string secondary_perk)
 
void setLoadout (string class_name, number loadout_num, Equipment loadout)
 

Function Documentation

Equipment equipment ( string  primary_weapon,
string  secondary_weapon,
string  belt_item,
string  pack,
string  primary_perk,
string  secondary_perk 
)

Creates an Equipment object containing the items to be used

Parameters
primary_weaponThe primary weapon
secondary_weaponThe secondary weapon
belt_itemThe belt item
packThe pack
primary_perkThe primary perk
secondary_perkThe secondary perk
Returns
The created loadout
void setLoadout ( string  class_name,
number  loadout_num,
Equipment  loadout 
)

Configures the loadout defined by a class and loadout number to use the specified items

This functions allows the use of 9 loadouts per class instead of 6

Parameters
class_nameThe name of the class to define
loadout_numThe number of the loadout to define, from 1 to 9
loadoutAn Equipment object containing the items to use