Talk:Portal 2/Scripting/Script Functions

From Valve Developer Community
< Talk:Portal 2
Revision as of 03:38, 22 February 2012 by X6herbius (talk | contribs)
Jump to navigation Jump to search

Console command?

Turkleton, what's the console command you used to get this list? Just curious ;) --Barracuda 22:40, 20 May 2011 (UTC)


I used the script_help command. Seems it only works when you run the game in tools mode.

View angles?

Is there any possible way to get the player's eye angles via scripting? It would be insanely useful to me right now. Obviously there's the eye position in CBaseEntity but as far as I can see there's nothing on which direction the player is looking. The basic angle of the player only gives the yaw as a useful value, as neither pitch nor roll change (I guess because view angles are separate). --X6herbius 02:38, 22 February 2012 (PST)