I was really quite surprised we could do this.Code:lweapon ofType(int ID){ lweapon Type; for(int i=1;i<=Screen->NumLWeapons();i++){ Type = Screen->LoadLWeapon(i); if(Type->ID == ID) return Type; } lweapon Null; return Null; }
Does anyone have a better idea for 'none on screen' than returning one that doesn't point anywhere though?