This article's documentation is for anything that uses the Source engine. Click here for more information.

$screenalign

From Valve Developer Community
Revision as of 17:48, 3 August 2025 by Equalizer5118 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

$screenalign is a QC command available in all Source Source games. It sets a bone to automatically realign its orientation to the screen.

Icon-Bug.pngBug:Does not work in Source 2013 despite studiomdl accepting this parameter
PlacementTip.pngWorkaround:In Team Fortress 2, the teleport_vortex entity faces towards the local player clientside.
  [todo tested in ?]

Syntax

$screenalign <bone name> <"sphere" or "cylinder">

Note

The model's material must have a material proxy! Having no material proxy will show it working properly in hammer, but it will appear static in game.