Author Topic: Getting a bricks size client side.  (Read 1072 times)

I tried doing brickDatablockname.brickSizeZ but that didn't work and I don't know where to go now, dunno how I'd get the datablock ID's client side either.

%brick.getDatablock().bricksizeZ;

The names of datablocks are not transmitted to clients - if you look in tree() while in someone else's server (at ServerConnection) all the ParticleDatas, AudioProfiles and stuff are blank names and every select box just has "NULL" in it instead of the names.

I can't use %brick as I can't get the brick.

Why can't you get the brick?

Because the script's writing a macro so no bricks will actually be laid until the end of the function.

You're pwned.  Unless you wanted to check for the file client-side and read the z value from the brick script, you'd have to have server-side code.

You're pwned.  Unless you wanted to check for the file client-side and read the z value from the brick script, you'd have to have server-side code.

I'll just have to use pre-set heights.

Hmm.  If you can't do it right, don't do it at all.   :cookieMonster: