Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
(А челу снизу стоит хотя бы потрудится посмотреть на фото и внешний облик бойцов в Афгане)
Please fix
http://i.imgur.com/k1IdAsZ.jpg
local modelpaths = {"path/to/models", "one/other/one", "another/one/other", "etc."}
hook.Add ("PlayerSpawnedNPC","RandomConscriptModel", function (ply, npc)
if npc: GetName () = = "name of your recruit entity", then
npc: SetModel (modelpaths[math.random(1.9)])
end
end
)
I don't know what the return value of Entity:GetName () is, maybe you should use something else to find out if the generated NPC is yours or not...