#k(float) seems to be working fine serverside in this class (after it adds a kart to the player, it tells them which keys they should press to accelerate/brake):
NPC Code:
say2("
You now control a kart!
Press #k(5) to accelerate
and #k(4) to brake");
works. It properly displays which keys are set (traditionally) to S and D.
However, when I try to convert it to use keyname(float):
NPC Code:
say2("
You now control a kart!
Press" SPC keyname(5) SPC "to accelerate
and" SPC keyname(4) SPC "to brake");
}
it returns 0 now and causes this error:
Quote:
|
GraalScript: Function keyname not found at line 15 of karthouses in script of npcs[302] (in level worldr-08.nw at pos (41, 52))
|
Any suggestions? Is there something I'm missing?