Russian: G.CreateAHuman

From Data Realms Wiki

(Difference between revisions)
Jump to: navigation, search
Ximximik (Talk)
(Created page with '{{Russian:LuaFunction |function_name = CreateAHuman |arguments = ({{Russian:string|string}},{{Russian:string|string}}) PresetName, .RTE Name |returns …')

Latest revision as of 07:56, 26 June 2010

Функция
СинтаксисCreateAHuman( (string,string) PresetName, .RTE Name )
Описание:
Создает объект типа AHuman, Если вместо имени .RTE оставляют пробел, оно ищет во всех файлах, иначе оно ищет в моде.
ВозвращаетAHuman




Пример
ОписаниеСоздает клона коалиции в позиции (1642 , 605)
Код
local clone = CreateAHuman("Soldier Heavy" , "Coalition.rte");
clone.Pos = Vector(1642 , 605);
clone.Team = self.CPUTeam;
clone.AIMode = Actor.AIMODE_SENTRY;
MovableMan:AddActor(clone);
ВозвращаетAHuman
Personal tools