From SRB2 Wiki
Jump to navigation Jump to search

A_SetObjectFlags is an action that modifies the actor's flags. Var1 is the flags value to use and Var2 specifies what should be done with it: If set to 0, Var1's value will overwrite the current flags value. If set to 1, Var1's value will be removed from the current flags value. If set to 2, Var1's value will be added to the current flags value.

Note that this action also unsets the actor's position and clears the sector list; this is to allow MF_NOBLOCKMAP and MF_NOSECTOR to be added or removed from the actor's flags properly, if necessary. When the actor's position is reset afterwards, these two flags determine whether or not the actor is added to the blockmap and sector links, respectively.

  Actions – Property modifiers [view]