Lua_run
< Ru
Jump to navigation
Jump to search
lua_run это точечная сущность, доступная в
Garry's Mod. Она выполняет необработанный код Lua, переданный в ключевых значениях.
Keyvalues
- Code (Code) <строка>
- Lua code to run when triggered.
The lua variablesACTIVATORandCALLERmay be used in the code, as well asTRIGGER_PLAYERif !activator resolves to a player.
" as string arguments will corrupt the VMF file's structure, making the file unviewable for the next Hammer session.' or brackets [[]] to contain strings in your lua code.- Name (targetname) <объект источник>
- Имя объекта, по которому другие объекты могут ссылаться на этот объект, через Входы/Выходы или другие ключ-параметры (например
parentnameилиtarget).
Также отображаются на 2D-видах в Hammer и Отчёте об объектах (Entity Report). - См. также: Основные ключ-параметры, входы и выходы доступные для всех объектов
Flags
- 1: Run code on spawn
Inputs
- RunCode
- Run Code that was defined in the entity.
- RunPassedCode <строка>
- Run code that was passed as a variable.