I think it will be properly to rename objects mi24v_rwr and do the same in the scene (you can use text editor to replace MI24V_RWR_ with mi28_rwr_ or something similar in the LWS file). However, it's not necessary as lamps objects should be copied to the Mi28 scene without any changes anyway. Code I added was just example but not finished mod, so feel free to apply any changes.
It's not usual that some code from single cockpit used by other one, normally such functions should be moved to the COMMON section. but it happen, yes.