SetViewModelDepthOfField( <start>, <end> )


Module: Player

Summary:

Set the depth of field values for the player's viewmodel when at hip. If start >= end, depth of field is disabled.



Call this on:

<player>



Example:

self SetViewModelDepthOfField( 2, 10 );



Required Args:

  • 1 : <start> Before this distance, depth of field is maximally blurry
  • 2 : <end> After this distance, depth of field is perfectly in focus