player_manager.TranslatePlayerModel
From GMod Wiki
Function | |
Syntax |
player_manager.TranslatePlayerModel( String name ) Where is this used? |
Description: | |
This function will translate the "name" parameter into a valid player model filename. If the name specified isn't a valid model, it will return the default player model: "models/player/Kleiner.mdl". | |
Returns: | String |
Part of Library: | player manager |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player manager.TranslatePlayerModel]Player manager.TranslatePlayerModel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Prints the model path for a certain playermodel. |
---|---|
Used on | |
Code | print(player_manager.TranslatePlayerModel("breen")) |
Output | models/player/breen.mdl |
Additional Notes
- Valid player models listed in player_manager.lua are:
Name Filename alyx models/player/alyx.mdl barney models/player/barney.mdl breen models/player/breen.mdl combine models/player/combine_soldier.mdl prison models/player/combine_soldier_prisonguard.mdl super models/player/combine_super_soldier.mdl eli models/player/eli.mdl gman models/player/gman_high.mdl kleiner models/player/Kleiner.mdl scientist models/player/Kleiner.mdl monk models/player/monk.mdl mossman models/player/mossman.mdl gina models/player/mossman.mdl odessa models/player/odessa.mdl police models/player/police.mdl zombie models/player/classic.mdl burnt models/player/charple01.mdl corpse models/player/corpse1.mdl charple models/player/charple01.mdl zombine models/player/zombie_soldier.mdl magnusson models/player/magnusson.mdl fzombie models/player/Zombiefast.mdl stripped models/player/soldier_stripped.mdl female1 models/player/Group01/female_01.mdl female2 models/player/Group01/female_02.mdl female3 models/player/Group01/female_03.mdl female4 models/player/Group01/female_04.mdl female5 models/player/Group01/female_06.mdl female6 models/player/Group01/female_07.mdl female7 models/player/Group03/female_01.mdl female8 models/player/Group03/female_02.mdl female9 models/player/Group03/female_03.mdl female10 models/player/Group03/female_04.mdl female11 models/player/Group03/female_06.mdl female12 models/player/Group03/female_07.mdl male1 models/player/Group01/male_01.mdl male2 models/player/Group01/male_02.mdl male3 models/player/Group01/male_03.mdl male4 models/player/Group01/male_04.mdl male5 models/player/Group01/male_05.mdl male6 models/player/Group01/male_06.mdl male7 models/player/Group01/male_07.mdl male8 models/player/Group01/male_08.mdl male9 models/player/Group01/male_09.mdl male10 models/player/Group03/male_01.mdl male11 models/player/Group03/male_02.mdl male12 models/player/Group03/male_03.mdl male13 models/player/Group03/male_04.mdl male14 models/player/Group03/male_05.mdl male15 models/player/Group03/male_06.mdl male16 models/player/Group03/male_07.mdl male17 models/player/Group03/male_08.mdl male18 models/player/Group03/male_09.mdl