Common Code Snippets

From GMod Wiki

(Difference between revisions)
Jump to: navigation, search
(Undo revision 51210 by 76561197960279927 (talk))
(Undo revision 51209 by 76561197969339746 (talk))
 
Line 1: Line 1:
{{CatUp|Lua}}
{{CatUp|Lua}}
-
 
+
{{CatStart}}
== Code Snippets ==
== Code Snippets ==
If you don't know the commands that you need, or you don't know how to implement them or if you don't want to write everything yourself, take a look in the categories below. A collection of useful code snippets, also don't hesitate to write a good snippet yourself.
If you don't know the commands that you need, or you don't know how to implement them or if you don't want to write everything yourself, take a look in the categories below. A collection of useful code snippets, also don't hesitate to write a good snippet yourself.
 +
|}
-
 
+
{{CatStart}}
-
* [[Code Snippets General| General Snippets]]- Useful general code snippets
+
{{CatItem|Yarin Kaul Icon LuaCode48.png|Code Snippets General|General Snippets|Useful general code snippets}}
-
* [[Common Code Snippets Entities| Entity Snippets]]- Snippets for use with entities
+
{{CatItem|Irayo EntHook.png|Common Code Snippets Entities|Entity Snippets|Snippets for use with entities}}
-
* [[Common Code Snippets Files| Files]]- How to detect or read and write to files
+
{{CatItem|Binary.png|Common Code Snippets Files|Files|How to detect or read and write to files}}
-
* [[Common Code Snippets Console| Console]]- Need examples for console commands, and how to manipulate the console
+
{{CatItem|Console.png|Common Code Snippets Console|Console|Need examples for console commands, and how to manipulate the console.}}
-
* [[Common Code Snippets Misc| Miscellaneous]]- Looking for another category?
+
{{CatItem|gear.png|Common Code Snippets Misc|Miscellaneous|Looking for another category?}}
 +
|}

Latest revision as of 05:52, 28 April 2011

Code Snippets

If you don't know the commands that you need, or you don't know how to implement them or if you don't want to write everything yourself, take a look in the categories below. A collection of useful code snippets, also don't hesitate to write a good snippet yourself.

Yarin Kaul Icon LuaCode48.png General Snippets
Useful general code snippets
Irayo EntHook.png Entity Snippets
Snippets for use with entities
Binary.png Files
How to detect or read and write to files
Console.png Console
Need examples for console commands, and how to manipulate the console.
Gear.png Miscellaneous
Looking for another category?
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox