Instalar Steam
iniciar sesión
|
idioma
简体中文 (chino simplificado)
繁體中文 (chino tradicional)
日本語 (japonés)
한국어 (coreano)
ไทย (tailandés)
Български (búlgaro)
Čeština (checo)
Dansk (danés)
Deutsch (alemán)
English (inglés)
Español de Hispanoamérica
Ελληνικά (griego)
Français (francés)
Italiano
Bahasa Indonesia (indonesio)
Magyar (húngaro)
Nederlands (holandés)
Norsk (noruego)
Polski (polaco)
Português (Portugués de Portugal)
Português-Brasil (portugués de Brasil)
Română (rumano)
Русский (ruso)
Suomi (finés)
Svenska (sueco)
Türkçe (turco)
Tiếng Việt (vietnamita)
Українська (ucraniano)
Comunicar un error de traducción
(А челу снизу стоит хотя бы потрудится посмотреть на фото и внешний облик бойцов в Афгане)
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...