SetViewOffset: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
m (boldiness...no glossary)
Line 1: Line 1:
== void CBaseEntity::SetViewOffset( const Vector &vecOffset ) ==
== void CBaseEntity::'''SetViewOffset'''( const Vector &vecOffset ) ==
This function is used to define the relative position to the eyes of the entity. This vector is hardcoded and must be set with custom models.
This function is used to set position of eyes relative to {{this}} entity. For an NPC, the default offset is determined by the eye position defined its model.
 
[[Category:Glossary]]
[[Category:Functions]]
[[Category:Functions]]

Revision as of 15:14, 22 July 2006

void CBaseEntity::SetViewOffset( const Vector &vecOffset )

This function is used to set position of eyes relative to Template:This entity. For an NPC, the default offset is determined by the eye position defined its model.