Author Topic: Tribes scripting Q  (Read 1397 times)

0 Members and 1 Guest are viewing this topic.

Hack-N-Slash

  • Elvin Legion
  • *****
  • Posts: 492
  • Reputation: +0/-0
Tribes scripting Q
« on: May 6, 2004 06:43 am CDT »
Explain remoteEval and the parameters it's intended to take?

I posted here because nobody looks at developement much.
« Last Edit: December 31, 1969 06:00 pm CST by Hack-N-Slash »
[size=200]I am a fat, wealthy, capitalist pig[/size]

Hack-N-Slash

  • Elvin Legion
  • *****
  • Posts: 492
  • Reputation: +0/-0
(No subject)
« Reply #1 on: May 6, 2004 10:45 am CDT »
bump
« Last Edit: December 31, 1969 06:00 pm CST by Hack-N-Slash »
[size=200]I am a fat, wealthy, capitalist pig[/size]

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #2 on: May 6, 2004 12:10 pm CDT »
remoteEval is to perform an action of some sort..

For instance...

remoteEval(2048, say, 0, "Woe is me!");

2048 is for client ID purposes.. If you are client-side scripting, it will always be 2048.

say is the command
0 is the parameter the command requires which I believe is text color (you can't change this from client).

Then after that is the rest of the command.

You could just as easily write say(0,"Woe is me!"); But from a server perspective, you can easily write remoteEval(%clientId, say, 0, "Woe is me!"); This will forward it to the client specified.

It is useful client-side for things you normally aren't able to do..

For instance...
remoteEval(2048, throwItem, 41, 1000); to throw a grenade at maximum force.

Next time, post this in assistance. It will get answered there faster than you think.
« Last Edit: December 31, 1969 06:00 pm CST by UnderGod »
"The right man in the wrong place can make all the difference in the world"

-eViL-

  • Minotaur Rager
  • ******
  • Posts: 880
  • Reputation: +0/-0
(No subject)
« Reply #3 on: May 6, 2004 02:32 pm CDT »
Quote from: "UnderGod"
- is the parameter the command requires which I believe is text color (you can't change this from client).


actually oz man... 0 is the channel.  the channel references the color in the end.. but it is the channel of the message.  0 is all players, 1 is team players, and you can build in more.
« Last Edit: December 31, 1969 06:00 pm CST by -eViL- »
There's nothing ever wrong but nothing's ever right
Such a cruel contradiction

Lidge Farkley

  • Uber Menace
  • *******
  • Posts: 1,357
  • Reputation: +2/-3
    • http://www.angelfire.com/ca2/psychosworld2/
(No subject)
« Reply #4 on: May 6, 2004 11:18 pm CDT »
COuld we move this to the assistance forum please?

(for sake of archiving usefull data there.)
« Last Edit: December 31, 1969 06:00 pm CST by Lidge Farkley »
Lend your heart unto the divine mineral TOPAZ;
from which our reverent hearts and minds sprang.
Also Known As:  Alcoholic 007
My Page of tribes Tools and Helpful "FAQ" Stuff