NPC.CapabilitiesGet

From GMod Wiki

Revision as of 01:55, 9 January 2011 by Disseminate (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax NPC:CapabilitiesGet( )
Description:
Gets the capabilities set with NPC.CapabilitiesAdd.
Returns: Number
In Object: Npc
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=NPC.CapabilitiesGet]NPC.CapabilitiesGet [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGet an NPC's capabilities.
Used onNewerServer.png
Code
 
MsgN( ents.FindByClass( "npc_headcrab" )[1]:CapabilitiesGet() );
 
OutputSpits out the capabilities.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox