cam.IgnoreZ

From GMod Wiki

Jump to: navigation, search
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: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Cam.IgnoreZ]Cam.IgnoreZ [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionAllows you to see this scripted entity through walls.
Used onNewerClient.png
Code
function ENT:Draw()
	cam.IgnoreZ(true);
 
	self:DrawModel();
 
	cam.IgnoreZ(false);
end
 
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox