Player.SetNoTarget

From GMod Wiki

Revision as of 21:23, 26 June 2010 by Elspin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:SetNoTarget( Boolean visible )
Description:
Makes the player invisible to npcs
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.SetNoTarget]Player.SetNoTarget [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis enables no target on player 1.
Used onNewerServer.png
Code
player.GetByID(1):SetNoTarget(true)
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox