Author Topic: Check Trust Levels [Solved]  (Read 934 times)

I've found some mixed results while searching. So, how can I check the trust level of two BL IDs? I need it to work even if one of the clients isn't on the server.
« Last Edit: January 19, 2015, 04:18:24 PM by jes00 »

getTrustLevel(obj1,obj2);

obj1 and obj2 can be a brick, a player, a brickgroup, a vehicle, a bot, or maybe even a projectile.

getTrustLevel(obj1,obj2);

obj1 and obj2 can be a brick, a player, a brickgroup, a vehicle, a bot, or maybe even a projectile.
But I won't have any of those if one of the clients isn't there.

If they aren't on the server and they don't have any bricks then how do you expect to figure out in the first place?

(("brickGroup_" @ %ID1).trusted[%ID2] & ("brickGroup_" @ %ID2).trusted[%ID1]) || %ID1 == %ID2
« Last Edit: January 19, 2015, 02:25:12 PM by $trinick »

But I won't have any of those if one of the clients isn't there.
Trust levels are stored in the brickgroup. If they don't have a brickgroup there is no way for you to find out their trust levels anyways.

Trust levels are stored in the brickgroup. If they don't have a brickgroup there is no way for you to find out their trust levels anyways.
Brickgroups aren't instantiated and cleaned up as clients leave and join. They're instantiated the first time a client joins and then never deleted until the server is closed, meaning you can still check the trust level after they've left assuming they've at least been there once.