function must be assigned to simple model, existed in level (small cube, for example): ent_create(.....,free_cam) or make it action and assign in WED EDIT: to switch between cameras on key pressed take that code as snippet and integrate it in your camera code