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

$screenalign: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Sets a bone to automatically realign its orientation to the screen.
{{This is a|QC command|name=$screenalign}} It sets a bone to automatically realign its orientation to the screen. __NOTOC__
 
{{Bug|Does not work in Source 2013 despite [[studiomdl]] accepting this parameter  
{{Bug|Does not work in Source 2013 despite [[studiomdl]] accepting this parameter}}
{{workaround|In {{tf2}}, the [[teleport_vortex]] entity faces towards the local player clientside.}}}}
 
== Syntax ==
== Syntax ==
  $screenalign <bone name> <"sphere" or "cylinder">
  $screenalign <bone name> <"sphere" or "cylinder">
[[Category:QC Commands|screenalign]]__NOTOC__
===Note===
===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.
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.

Latest revision as of 17:48, 3 August 2025

$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.