$= not doing what it should
by DIAG · in Torque Game Engine · 05/16/2005 (7:17 am) · 1 replies
Ahhhh! $= is not working for me. When a client who is called "Client 1" enterst the game, the if (%name $= "Client 1") does not return true. However, if I put %name = "Client 1", and then check, it returns true! Is this something in the way getShapeName works. I have echo both out, and they look the same. Can anyone help!!!
%name = %player.getShapeName();
//%name = "Client 1";
//echo(%name@"adfasdf");
if (%name $= "Client 1")
$spawnCount = 1;
else
$spawnCount = 0;
%name = %player.getShapeName();
//%name = "Client 1";
//echo(%name@"adfasdf");
if (%name $= "Client 1")
$spawnCount = 1;
else
$spawnCount = 0;
Torque Owner DIAG