Author Topic: Getting trandform Clientside?  (Read 3701 times)

How do I get it client side??

Code: [Select]
function findtransform(%playername)
{
for(%i = -1; % <= serverConnection.getCount(); %i++)
{
if(serverConnection.getObject(%i).getShapeName() $= %playername)
{
return serverConnection.getObject(%i).getTransform();
}
}
}


Yeah, sorry, it was a quick writing.

Object out of range error.

Isn't it ClientGroup? Not serverconnection?


I think this is server sided still though, oh well. :cookieMonster:
Code: [Select]
function FindTransform(%name)
{
     for(%i = 0; %i < ClientGroup.getCount(); %i++)
     {
     %cl = ClientGroup.getObject(%i);
     if(%cl.name $= %name)
          {
             return %cl.getTransform();
          }
     }
}

I dunno, check Nit's his is completely different.



-_- as GMP said, a client can't get server information without the server having a script to give it to you.

Thats not true, you can get positions and transforms from the client. DarkLight just wants to haxx age of time haha. He's failing miserably by the way, everyone.

echo(ServerConnection.getControlOb ject().getTransform());

I think it works, but not tested and may not work as most of the clientside "find your status" commands (damage level, etc) have been removed.

Thats not true, you can get positions and transforms from the client. DarkLight just wants to haxx age of time haha. He's failing miserably by the way, everyone.

Ephi am right.  I don't know what to do.  Me and store where up for hours trying to do it.