Game Development Community

Sender in RPGDialog

by Dave · in Torque Game Engine Advanced · 03/02/2006 (11:44 am) · 1 replies

Hi,

I have this question in the RPGDialog resource thread, but I don't think that is very active any more.

Can anyone tell me how the %sender variable is set for RPGDialog please? It is used in the scripts to get the name of the character you are talking to, which is then allocated to %senderName. However the NPC I talk to does not seem to have a value for this variable as his name does not appear on the dialog box. I can't find any place where it is being set by anything, it's almost as if it is expected to be automatically set by the engine or something.

Huge amounts of appreciation to anyone who can help.

Thanks a million,

Dave.

#1
03/03/2006 (7:46 am)
Got a response from Nelson offline (thanks Nelson). Just for the benefit of anyone else, the variable is pulled from the result of a raycast. The shapename needs to have been set using the object .setShapeName("name") for it to work.