Modding:Commands/ru: Difference between revisions

From Vintage Story Wiki
(Created page with "Теперь нам нужно зарегистрировать саму команду: <syntaxhighlight lang="c#"> public override void StartServerSide(ICoreServerAP...")
(Created page with "Эту команду может использовать любой игрок, которому разрешено отправлять сообщения (по умолча...")
Line 42: Line 42:
</syntaxhighlight>
</syntaxhighlight>


This command can be used by any player who is allowed to send a message (by default everyone). When a player types in <code>/here</code>, the command will be executed. Now we the only thing missing is the actual code to spawn particles and to play the sound.
Эту команду может использовать любой игрок, которому разрешено отправлять сообщения (по умолчанию все). Когда игрок вводит <code>/here</code>, команда будет выполнена. Теперь нам не хватает только самого кода для создания частиц и воспроизведения звука.


<syntaxhighlight lang="c#">
<syntaxhighlight lang="c#">