Player.RemoveSuit

From GMod Wiki

Revision as of 13:54, 10 June 2011 by (#>) Mwr247 (Mike) (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:RemoveSuit( )
Description:
Removes the player's HEV suit, which disallows the player from switching weapons, or seeing their health, armor, and ammo.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.RemoveSuit]Player.RemoveSuit [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionThis will remove the player's HEV suit
Used onNewerServer.png
Code
function takeOffSuit( ply )
	ply:RemoveSuit()
end
 
concommand.Add("removehev", takeOffSuit)
OutputThe user's suit is removed when they run the "removehev" command.


Additional notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox