Game Development Community

Tag, your it!

by Dreamer · in Torque Game Engine · 05/10/2005 (12:36 pm) · 3 replies

Having a little problem here, I am calling commandToServer(%cmd,%var); where %cmd is defined by a buttons text value
Only problem is the engine is whining that the command must be tagged.
I can't seem to figure this one out, I know how to detag a string, but how on earth to I tag it?

#1
05/10/2005 (1:50 pm)
A tagged string is one with single quotes around it
%var='I am tagged';
%othervar="Tagging not for me";

Gary (-;
#2
05/10/2005 (6:34 pm)
CommandToServer(addTaggedString(%cmd), %var);
#3
05/10/2005 (8:53 pm)
Thanx addTaggedString is what I was looking for!