GM:PlayerSetModel

From Garry's Mod
Jump to: navigation, search
 GM:PlayerSetModel( )

Contents

Description

Called whenever a player spawns and must choose a model. A good place to assign a model to a player.

NOTE This function may not work in your custom gamemode if you have overridden your GM:PlayerSpawn and you do not use self.BaseClass.PlayerSpawn or hook.Call.

Arguments

Player ply

The player being chosen

Examples

Example

Sets the player's model to Odessa

function GM:PlayerSetModel( ply )
   ply:SetModel( "models/player/odessa.mdl" )
end


Personal tools
Navigation