A ChangeFlag

From ECWolf Wiki

A_ChangeFlag (string flag, bool value)

Either sets or unsets a flag based on value. The flag can be any of the actor flags, but it may not always produce a useful result.