Add function SetType (class Actor).