so, Iv made a class, with some variables, how do I add a function to it so like with say Vector3() I can have a constructor like AmmoType(“Shells”,0) instead of
var a : AmmoType;
a.type = “Shells”
a.ammount = 0;
how do I make it so it has a constructor that will return it?