Russian: G.CreateAHuman
From Data Realms Wiki
(Difference between revisions)
Ximximik (Talk)
(Created page with '{{Russian:LuaFunction |function_name = CreateAHuman |arguments = ({{Russian:string|string}},{{Russian:string|string}}) PresetName, .RTE Name |returns …')
(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 |