gamemode.Call

From GMod Wiki

Revision as of 05:45, 30 January 2010 by Cyber cam34 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax gamemode.Call( String name, args )
Where is this used?
Description:
Called by the engine to call a hook within the loaded gamemode.
Returns: The result of the hook function.
Part of Library: gamemode
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Gamemode.Call]Gamemode.Call [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCall the loadout gamemode hook.
Used onNewerShared.png
Code
function Loadout(Player)
 
    gamemode.Call("PlayerLoadout", Player)
 
end
OutputN/A


Additional Notes


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox