I want text I write to console to write to chat for example test 1 2 3 would printtochat 1 2 3
How would I go about doing that? Thanks.![]()
Solved Printing console command args to chat?
Discussion in 'Rust Development' started by jackcat, Mar 4, 2018.
-
Wulf Community Admin
I don't have in in front of me, but generally something like:
Code:PrintToChat(string.Join(" ", args.ToArray());
Code:PrintToChat($"{args[0]} {args[1]} {args[2]}")
There are other methods too, some of which I believe Rust even has natively such as args.FullString and such. -
Thanks Wulf. arg.FullString works great.