cam.IgnoreZ
From GMod Wiki
| Function | |
| Syntax |
cam.IgnoreZ( Boolean bool ) Where is this used? |
| Description: | |
| Ignores the Z axis and enables cheap sorting. Anything drawn with IgnoreZ set to true will always be in front of the 3D world, and skybox materials, which will always be behind. | |
| Returns: | nil |
| Part of Library: | Cam |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Cam.IgnoreZ]Cam.IgnoreZ [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Allows you to see this scripted entity through walls. |
|---|---|
| Used on | |
| Code | function ENT:Draw() cam.IgnoreZ(true); self:DrawModel(); cam.IgnoreZ(false); end |
| Output | N/A |