• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Command System

Status
Not open for further replies.
Level 24
Joined
Aug 1, 2013
Messages
4,657
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