Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the 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.
Post Reply
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: 1884
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 34

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

Post Reply