Player.GetAllowFullRotation

From GMod Wiki

Revision as of 21:15, 19 August 2010 by MulleDK13 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player.GetAllowFullRotation( )
Description:
Get whether the player model is allowed to fully rotate.
Returns: Boolean Allowed
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GetAllowFullRotation]Player.GetAllowFullRotation [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Example

DescriptionPrint's in everyone's chatbox if they're allowed to fully rotate.
Used onNewerServer.png
Code
 for _, v in ipairs( player.GetAll() ) do
     if ( v:GetAllowFullRotation() ) then 
          v:PrintMessage( HUD_PRINTTALK, "You are allowed to rotate fully!" )
     else
          v:PrintMessage( HUD_PRINTTALK, "You aren't allowed to rotate fully!" )
     end
end
OutputYou aren't allowed to rotate fully!

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox