The class should be derived from CRationalEntity in order to process logic. Easy mistake to make.
class CBeam: CEntity {
Oh, so that's why it's called that. Thanks, it works now.