I've decided to give scripting a go. But, I'm not understanding how arguments work. I do know about arguments and all that jazz in different languages, but I'm not too sure how it works for TorqueScript.
There is arguments like:
%msgtype
%msgstring
I'm guessing you can name an argument anything you want, but they have to be in order? If that's the case, then how do I get things like the player username?
I'm doing client side modding for the time being, then move my way onto server side modding.
I'm using the call back function:
There is arguments like:
%msgtype
%msgstring
I'm guessing you can name an argument anything you want, but they have to be in order? If that's the case, then how do I get things like the player username?
I'm doing client side modding for the time being, then move my way onto server side modding.
I'm using the call back function:
Code:
addMessageCallback("MsgRespawned", myFunction);
function myFunction() {
echo("You have respawned!");
echo("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
}