Author Topic: getBrickGroupFromObject(%this).client  (Read 449 times)

Why is it that when I use

%own = getBrickGroupFromObject(%this).client;
%data.valueowner = %own;
It turns out as numbers, not a name? Maybe that's how many bricks I have is the numbers.

Why is it that when I use

%own = getBrickGroupFromObject(%this).client;
%data.valueowner = %own;
It turns out as numbers, not a name? Maybe that's how many bricks I have is the numbers.
It returns the object which is stored as a number (it's ID).  For the name, use %own.name, or %own.getName().

That is the client ID, the temporary object that exists holding their data (e.g. name, appearance, score) while they're in the server.

Use %data.valueowner = %own.getPlayerName(); for their name or %data.valueowner = %own.bl_id; for their BL_ID if you're saving data to it.