Gamemode.OnRoundResult

From GMod Wiki

(Redirected from OnRoundResult)
Jump to: navigation, search
Event Hook
Hook NameOnRoundResult
SyntaxGM:OnRoundResult( Number result, String resulttext )
DescriptionUsed to determine actions to be taken at the conclusion of a round won with team victory.
ReturnsNil
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.OnRoundResult]Gamemode.OnRoundResult [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionAdds to the score of the winning team. This is also the default code for this function.
Used onNewerServer.png
Code
 
function GM:OnRoundResult( result, resulttext )
 
	// The fact that result might not be a team 
	// shouldn't matter when calling this..
	team.AddScore( result, 1 )
 
end
 
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox