Author Topic: Getting server datablock information clientside  (Read 1755 times)

Basically, is it possible to get the client's current player datablock information on the client's side, and if so, how would I?

I basically need this to check a simple datablock field as part of a clientside script. In this case, I need to find the datablock's maxTools.

echo(serverConnection.getControlOb ject().getDatablock()); tree();?

then pull data from fields in tree?

i mean, get the name of fields from tree, the pull data with this: serverConnection.getControlObject().getDatablock().fieldhere

echo(serverConnection.getControlOb ject().getDatablock()); tree();?

then pull data from fields in tree?

i mean, get the name of fields from tree, the pull data with this: serverConnection.getControlObject().getDatablock().fieldhere

Except maxTools isn't a networked field for datablocks?

fcking

i totally missed literally the last 2 words of the op

THE LAST 2 WORDS

echo(serverConnection.getControlOb ject().getDatablock());
I haven't worked that much with clientside, but that returns a syntax error.
is ServerConnection not a scriptobject or something?

EDIT: echo(isObject(ServerConnection)); returns true.
« Last Edit: August 04, 2012, 08:01:56 PM by Wheatley »

I haven't worked that much with clientside, but that returns a syntax error.
is ServerConnection not a scriptobject or something?

random space between "Ob" and "ject"

ffff how did i not see that


Thread is full of not seeing things

Except maxTools isn't a networked field for datablocks?
Also, if that's the case, how does the server tell the client how many slots to show?

Also, if that's the case, how does the server tell the client how many slots to show?
By a client command.

By a client command.
Any idea which? I've already looked through all the clientCmds my console gives me, but none of them sound relevant.

try tracing for it when you spawn
I suggest turning off rtb for that

Nice idea. I'm guessing changing datablocks might work too?

I'll edit this post when I get results.

EDIT: it seems to draw it with clientCmdPlayGUI_CreateToolHU D(%slots);
« Last Edit: August 05, 2012, 09:41:18 PM by Wheatley »

Alright, this works. Thanks. Locking.