Entity/LookupAttachment

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Name=LookupAttachment |Parent=Entity |Description=Gets the attachment index of the given attachment name, returns nothing if the attachment does not exist. |Realm=...")
 
m (Updated invalid return)
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=LookupAttachment
+
|Description=Gets the attachment index of the given attachment name, returns 0 if the attachment does not exist.
|Parent=Entity
+
|Description=Gets the attachment index of the given attachment name, returns nothing if the attachment does not exist.
+
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes
Line 13: Line 11:
 
{{Ret
 
{{Ret
 
|type=number
 
|type=number
|desc= attachmentIndex
+
|desc=attachmentIndex
 
}}
 
}}

Revision as of 23:58, 4 May 2017

 Entity:LookupAttachment( )

Description

Gets the attachment index of the given attachment name, returns 0 if the attachment does not exist.

Arguments

string attachmentName

The name of the attachment.

Returns

number

attachmentIndex
Personal tools
Navigation