Author Topic: Scripting Help  (Read 763 times)

Hey,

In Torque, if I want to make a command (a '/something'), but how do I make it so after you type in the command, ex. /command, you type a space then write something. That thing you type temporarily becomes the variable. Then I want to be able to have the script announce the variable.

example:

Quote
servercmdcommand [variable](%client);
 announce("[variable]");
}

Any help?

Thanks,
Something

Brilliant! lets post coding help topics in help instead of coding help!
Code: [Select]
servercmdcommand(%client,%var){
 announce(%var);
}

Badspot

  • Administrator
Ambiguous topic.  Fix it please