G.DeriveGamemode
From GMod Wiki
Revision as of 19:30, 15 August 2011 by TheFreeman193 (Talk | contribs)
Function | |
Syntax |
DeriveGamemode( String GamemodeName ) Where is this used? |
Description: | |
Instructs Garry's Mod to derive the current gamemode from the gamemode named GamemodeName | |
Returns: | nil |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.DeriveGamemode]G.DeriveGamemode [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Derives the current gamemode from the Sandbox gamemode. (All Sandbox functionality will be available) |
---|---|
Used on | |
Code | DeriveGamemode("sandbox") |
Output | N/A |
Additional Notes
- The GamemodeName argument is the name of the directory/folder containing the gamemode. So, for example, if you wanted to derive a gamemode from the Garry's Mod Deathmatch gamemode, gmdm should be passed as the argument.