Gamemode.SetRoundResult
From GMod Wiki
(Redirected from SetRoundResult)
Gamemode Function: Gamemode.SetRoundResult | |
---|---|
Gamemode.SetRoundResult is a function that is defined in the Fretta Gamemode and its derivatives. |
Function | |
Syntax | Gamemode.SetRoundResult( Number result, String resulttext ) |
Description: | |
Sets global data for use elseware | |
Returns: | nil |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Gamemode.SetRoundResult]Gamemode.SetRoundResult [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Sets the winning team to 't' and the text to say that that team won. |
---|---|
Used on | |
Code | Gm.SetRoundWinner(t, team.GetName(t) .. " wins!") |
Output | N/A |
Additional Notes
- Is called from RoundEndWithResult
- Sets the team as the global integer 'RoundResult'
- Sets the text as the global string 'RRText'