Global/Add NPC Class

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
{{Function
+
{{Func
| Name = Add_NPC_Class
+
|Name=Add_NPC_Class
| Namespace = [[Global]]
+
|Parent=Global
| Realm = Shared
+
|Description=Creates a CLASS_ Enum and assigns it as a global variable with a automatic value so as to prevent collisions with
 +
|Realm=Shared
 +
|IsClass=No
 
}}
 
}}
{{Syntax
+
{{Arg
 
+
|type=string
| Name = Add_NPC_Class
+
|name=name
| Description = Creates a CLASS_ Enum and assigns it as a global variable with a automatic value so as to prevent collisions with other scripts.
+
|desc=The name of the ENUM/new global variable.
 
+
| Arg1Name = name
+
| Arg1Type = string
+
| Arg1Req = true
+
| Arg1Desc = The name of the ENUM/new global variable.
+
 
}}
 
}}

Revision as of 16:11, 26 February 2013

 Add_NPC_Class( )

Description

Creates a CLASS_ Enum and assigns it as a global variable with a automatic value so as to prevent collisions with

Arguments

string name

The name of the ENUM/new global variable.
Personal tools
Navigation