CH5] messageClient function not displaying text ingame
by Andreas Johansen · in Torque Game Engine · 06/15/2006 (6:41 am) · 2 replies
I got the emaga5 game as it is in chapter 5 running with everything working except for messaging the player when picking up items. In the code from chapter 5 there is for example this command in the Weapon::onUse function:
However, ingame nothing displays. In the console.log file however this gets added on first encounter of a messageClient call;
So, the function seem to run, but not displaying anything to the player in the HUD ingame...
Quote:messageClient(%obj.client, 'MsgWeaponUsed', '\c0Weapon selected');
However, ingame nothing displays. In the console.log file however this gets added on first encounter of a messageClient call;
Quote:Mapping string: MsgItemPickup to index: 13
Mapping string: You picked up %1 to index: 14
Mapping string: MsgWeaponUsed to index: 15
Mapping string: Weapon selected to index: 16
So, the function seem to run, but not displaying anything to the player in the HUD ingame...
#2
06/15/2006 (7:57 am)
Can't find the method 'ServerMessage' that gets sent to the client using the 'messageClient' function. And there also isn't any GuiTextCtrl created in the playerinterface.gui file for holding messages to the player.
Chris
Anybody already know?