Global/Add NPC Class

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Function | Name = Add_NPC_Class | Namespace = Global | Realm = Shared }} {{Syntax | Name = Add_NPC_Class | Description = You can use this function to add your own...")
 
Line 7: Line 7:
  
 
  | Name =  Add_NPC_Class
 
  | Name =  Add_NPC_Class
  | Description = You can use this function to add your own CLASS_ var.<br />
+
  | Description = Creates a CLASS_ Enum and assigns it as a global variable with a automatic value so as to prevent collisions with other scripts.
Adding in this way will ensure your CLASS_ doesn't collide with another.
+
 
 
  | Arg1Name = name
 
  | Arg1Name = name
  | Arg1Type = any
+
  | Arg1Type = string
 
  | Arg1Req = true
 
  | Arg1Req = true
  | Arg1Desc = N/A
+
  | Arg1Desc = The name of the ENUM/new global variable.
 
}}
 
}}

Revision as of 13:19, 29 August 2012

Template:Function Template:Syntax

Personal tools
Navigation