Squirrel/Server/Functions/SpawnClass/AddWeapon
From Liberty Unleashed Wiki
This function adds a new spawn weapon for the given slot of a SpawnClass.
Syntax
int SpawnClass.AddWeapon( int weapon [, int ammo [, int slot ] ] )
Arguments
- weapon - The weapon model to add
- ammo - How much ammo for the spawn weapon should be added. This is an optional argument, defaults to 100 if not used
- slot - The slot you want to set the new weapon for. There are 12 slots available. This is an optional argument, finds the first free slot by default. Returns false if no free slots are available
Example
This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
-- todo
Notes
-- Example notes/used functions here