Entity.VisibleVec

From GMod Wiki

Revision as of 16:36, 6 January 2011 by Cube334 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:VisibleVec( Vector vWorldPos )
Description:
Returns true if this entity can "see" the given position in the game world. False is returned otherwise. See additional notes for important information on this function.
Returns: Boolean
In Object: Entity
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.VisibleVec]Entity.VisibleVec [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrint 'true' if myEnt can see the world position 0,0,0
Used onNewerServer.png
Code
print( myEnt:VisibleVec( Vector( 0, 0, 0 ) ) )
Outputtrue if visible, false if not.


Additional notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox