PhysObj.AddGameFlag
From GMod Wiki
Revision as of 20:59, 8 October 2009 by Unrealomega (Talk | contribs)
Function | |
Syntax | PhysObj:AddGameFlag( Number flag ) |
Description: | |
Applies a physics flag, making an object behave differently than usual. | |
Returns: | nil |
In Object: | Physobj |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=PhysObj.AddGameFlag]PhysObj.AddGameFlag [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- "flag" can be any of the following:
SHARED | 0000000000000001 | 00000000000000001 | DMG_SLICE SHARED | 0000000000000002 | 00000000000000010 | CONSTRAINT_STATIC SHARED | 0000000000000004 | 00000000000000100 | PLAYER_HELD SHARED | 0000000000000008 | 00000000000001000 | PART_OF_RAGDOLL SHARED | 0000000000000016 | 00000000000010000 | MULTIOBJECT_ENTITY SHARED | 0000000000000032 | 00000000000100000 | HEAVY_OBJECT SHARED | 0000000000000064 | 00000000001000000 | PENETRATING SHARED | 0000000000000128 | 00000000010000000 | NO_PLAYER_PICKUP SHARED | 0000000000000256 | 00000000100000000 | WAS_THROWN SHARED | 0000000000000512 | 00000001000000000 | DMG_DISSOLVE SHARED | 0000000000001024 | 00000010000000000 | NO_IMPACT_DMG SHARED | 0000000000002048 | 00000100000000000 | NO_NPC_IMPACT_DMG SHARED | 0000000000032768 | 01000000000000000 | NO_SELF_COLLISIONS
- To add multiple flags, call this function multiple times - it's not clear whether using the | operator (as with most flags) will work here.