• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Command System

Status
Not open for further replies.
Level 24
Joined
Aug 1, 2013
Messages
4,658
Just a small question but I want a command system in my new map but dont know how to call it without sendin a message everytime.

The principle is very simple:

A player sends a message that starts with "/"
Then I do my action to whatever that player said after that.
Then I stop the message so it will not be shown.

That last one is as far as I know impossible.
Does anyone know how to make a clean command system?
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
you cant stop people's text with regular means. You can do something like one resource does, which is essentially custom chat, which works in such a way that you replace font of the chat with some invalid one, and you print stuff yourself instead, when you want to show it
 
Status
Not open for further replies.
Top