Author Topic: Bind  (Read 2195 times)

0 Members and 1 Guest are viewing this topic.

Blink

  • Elvin Legion
  • *****
  • Posts: 409
  • Reputation: +0/-0
    • http://www.black-goat.com
Bind
« on: December 24, 2003 10:39 pm CST »
How do you bind an animation to a key?
« Last Edit: December 31, 1969 06:00 pm CST by Blink »

Hersh

  • Elvin Legion
  • *****
  • Posts: 413
  • Reputation: +0/-0
(No subject)
« Reply #1 on: December 25, 2003 12:26 am CST »
This should be in Assistance probably.
But try
Code: [Select]
bindCommand(keyboard0, make, "j", TO, "Player::setAnimation(2049, 50);");
Where 50 should be the number of the animation you want. Look in HumanArmors.cs for a list.

Hersh
« Last Edit: December 31, 1969 06:00 pm CST by Hersh »

I kissed a drunk girl on the lips.
This post, by its very length, defends itself against the risk of being read.

Blink

  • Elvin Legion
  • *****
  • Posts: 409
  • Reputation: +0/-0
    • http://www.black-goat.com
(No subject)
« Reply #2 on: December 25, 2003 07:39 am CST »
And they....2049 is the sound?
found where?
« Last Edit: December 31, 1969 06:00 pm CST by Blink »

Quaduce

  • b4nz0r3d!!!
  • Undead Hero
  • ****
  • Posts: 306
  • Reputation: +0/-0
(No subject)
« Reply #3 on: December 25, 2003 09:52 am CST »
« Last Edit: December 31, 1969 06:00 pm CST by Quaduce »
My cock is rated E for everyone.

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #4 on: December 25, 2003 12:21 pm CST »
2049 is your clientID. On the server your cliendid may be different, but on your tribes, you are always 2049.
« 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"

Blink

  • Elvin Legion
  • *****
  • Posts: 409
  • Reputation: +0/-0
    • http://www.black-goat.com
(No subject)
« Reply #5 on: December 25, 2003 01:10 pm CST »
Well...How do I bind a sound to a key?
« Last Edit: December 31, 1969 06:00 pm CST by Blink »

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #6 on: December 25, 2003 01:37 pm CST »
bindCommand(keyboard0, make, "j", TO, "remoteEval(2048, lmsg, Say::GetWav("attack");");

That will play the "Attack" sound in the area around you

Code: [Select]
function anisound(){
     remoteEval(2048, lmsg, Say::GetWav("attack");
     setAnimation(2048, 50);
}

bindCommand(keyboard0, make, "j", TO, "anisound();");


That will play the animation and say the sound at the same time.
« 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"