This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk

Forum rules

Execute game command silently

Give us your input on how we may improve the ScriptAPI in the game in future versions.
Forum rules
By using the forum you agree to the following rules.
Locked
NearHuscarl
Superfighter
Superfighter
Posts: 97
Joined: Thu Feb 07, 2019 4:36 am

Execute game command silently

Post by NearHuscarl » Fri Apr 03, 2020 6:36 pm

I need an option to execute the command without having to display them in the chat, like how CreateDialogue() works. So something like IGame.RunCommand(string command, bool showInChat)?
1 x
Image

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1887
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 36

Post by Gurt » Sat Apr 25, 2020 11:30 am

We have deliberately designed the RunCommand to show the command, just like you would type it in the chat or change the settings from the host menu. Could you elaborate a bit more of why you want to hide it?
0 x
Gurt

NearHuscarl
Superfighter
Superfighter
Posts: 97
Joined: Thu Feb 07, 2019 4:36 am

Post by NearHuscarl » Sat Apr 25, 2020 10:17 pm

I want to create a slowmo effect to emphasize an important event just happened, like when the barrel exploded in vanilla game, the chat wouldnt show slowmo command. Here is an example

https://i.imgur.com/Cv7xj1M.mp4
0 x
Image

Locked