G.DOF Think

From GMod Wiki

Jump to: navigation, search
Function
Syntax DOF_Think( )
Where is this used?
Description:
Run every Think, this is used to update some variables.
Returns: nil
Part of Library: Global Functions
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.DOF Think]G.DOF Think [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis is the Default DOF_Think function. Filched from \lua\postprocess
Used onNewerClient.png
Code
function DOF_Think( )
 
	local ply = LocalPlayer()
	if (ply == NULL) then return end
	DOF_SPACING = tonumber( ply:GetInfo("pp_dof_spacing") )
	DOF_OFFSET = tonumber( ply:GetInfo("pp_dof_initlength") )
 
end
 
hook.Add( "Think", "DOFThink", DOF_Think )
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox