Быстрое создание проводников — различия между версиями
Материал из S.T.A.L.K.E.R. Inside Wiki
(Новая страница: « == Логика == Создаем файл gamedata/scripts/teleport.script. Пишем туда: <lua> function provodnik() db.actor:set_actor_position(vec...») |
|||
Строка 1: | Строка 1: | ||
− | |||
== Логика == | == Логика == | ||
Создаем файл gamedata/scripts/teleport.script. Пишем туда: | Создаем файл gamedata/scripts/teleport.script. Пишем туда: | ||
<lua> | <lua> | ||
function provodnik() | function provodnik() | ||
− | db.actor:set_actor_position(vector():set(x,y,z) | + | db.actor:set_actor_position(vector():set(x,y,z),lvertex,gvertex) |
end | end | ||
</lua> | </lua> |
Версия 14:31, 7 мая 2012
Логика
Создаем файл gamedata/scripts/teleport.script. Пишем туда:
function provodnik() db.actor:set_actor_position(vector():set(x,y,z),lvertex,gvertex) end
Активация
В нужный диалог кидаем
<action>teleport.provodnik</action>