SetFlags: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 3: Line 3:
===Parameter Information ===
===Parameter Information ===
* Args1 = Select Bits Field (no default)  
* Args1 = Select Bits Field (no default)  
** 1 = Bits
** 0 = Any of the flags can be manipulated
** 2 = Bits2
** 1 = Restrict to flags1
** 3 = Bits3
** 2 = Restrict to flags2
** 3 = Restrict to flags3
** 4 = Restrict to flags4
* Args2 = Value to Logical-OR with selected Bits field (default of 0 = 0)  
* Args2 = Value to Logical-OR with selected Bits field (default of 0 = 0)  


Line 11: Line 13:
Adds the flags set in Args2 to the object's Bits field selected by Args1. This "turns on" effects controlled by those bits. Any flag may be toggled by this codepointer.
Adds the flags set in Args2 to the object's Bits field selected by Args1. This "turns on" effects controlled by those bits. Any flag may be toggled by this codepointer.


[[PlayerThunk|Thunk]]: Yes.
See [[Thing type flags]] for a list of available flags.
 
[[Category:Codepointers]]
[[Category:Codepointers]]

Revision as of 07:42, 19 January 2010

Type: Miscellaneous, parameterized

Parameter Information

  • Args1 = Select Bits Field (no default)
    • 0 = Any of the flags can be manipulated
    • 1 = Restrict to flags1
    • 2 = Restrict to flags2
    • 3 = Restrict to flags3
    • 4 = Restrict to flags4
  • Args2 = Value to Logical-OR with selected Bits field (default of 0 = 0)

Purpose and usage

Adds the flags set in Args2 to the object's Bits field selected by Args1. This "turns on" effects controlled by those bits. Any flag may be toggled by this codepointer.

See Thing type flags for a list of available flags.