Gamemode.RoundEndWithResult
From GMod Wiki
Revision as of 02:01, 10 December 2009 by Unrealomega (Talk | contribs)
Event Hook | |
Hook Name | RoundEndResult |
Syntax | GM:RoundEndResult( String Player result, String resulttext ) |
Description | Causes the round to end and determines what text to display. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.RoundEndWithResult]Gamemode.RoundEndWithResult [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes/Internal Handling Process
- SetRoundWinner or SetRoundResult is called depending on the type of 'result', which stores the winning player or team as a global variable for use elseware.
- Next, RoundEnd (and thus OnRoundEnd) are called.
- Finally, OnRoundResult or OnRoundWinner is called depending on the type of 'result'.