help with subject_to_screen

msmalik681

OpenBOR Developer
Staff member
I have use "subject_to_screen 1" on a enemy but they can still go off screen if i walk away with the player is there any way to fix this or am I doing something wrong ?
 
@msmalik681, I don't recall the exact build I introduced them, and no matter what subject_to_screen should still work. Just for kicks though, you might want to try the updated move_constraints property.


The various subject_to_x flags don't actually exist any more. The commands are just a layer of backward compatibility that work by adjusting the current move_constraints bitfield.

C:
 case CMD_MODEL_SUBJECT_TO_SCREEN:
               
                if (GET_INT_ARG(1))
                {
                    newchar->move_config_flags |= MOVE_CONFIG_SUBJECT_TO_SCREEN;
                }
                else
                {
                    newchar->move_config_flags &= ~MOVE_CONFIG_SUBJECT_TO_SCREEN;
                }

                break

DC
 
Back
Top Bottom