Scripting/Squirrel/Functions/AddClass
This wiki is using an old backup from 2020
Some information may be old/missing
Syntax
AddClass( class, RGB( 24, 255, 241 ) ,0, Vector( pos.x, pos.y, pos.z ), angle, weapon1, ammo1 ,weapon2, ammo2, weapon3, ammo3 );
function onScriptLoad()
AddClass( 1, RGB( 24, 255, 241 ) ,0, Vector( -378.79, -537.962, 17.2832 ), 140.020, 21, 999 ,1, 1, 25, 255 );
AddClass( 2, RGB( 100,200,300 ) ,5, Vector( -378.79, -537.962, 17.2832 ), 140.020, 21, 999 ,1, 1, 25, 255 );
AddClass( 3, RGB( 51, 51, 255 ) ,97, Vector( -378.79, -537.962, 17.2832 ), 140.020, 21, 999 ,1, 1, 25, 255 );
AddClass( 4, RGB( 121, 91, 9 ) ,16, Vector( -378.79, -537.962, 17.2832 ), 140.020, 21, 999 ,1, 1, 25, 255 );
AddClass( 5, RGB( 255, 51, 153 ) ,34, Vector( -378.79, -537.962, 17.2832 ), 140.020, 21, 999 ,1, 1, 25, 255 );
Notes
Call onPlayerCommand were used in this example. More info about them in the corresponding pages.