cyborg111 32 Posted May 5, 2016 Hello together..._unit spawn {waitUntil{group _this setGroupOwner 3};hint str owner _this}; // client Id can be different.it returns true even when locality of an object not has changed!any ideas? sure, an "uiSleep" would be conductive, but i don't use a "waitUntil", to obtain a false statement! Share this post Link to post Share on other sites
killzone_kid 1326 Posted May 5, 2016 Hello together... _unit spawn {waitUntil{group _this setGroupOwner 3};hint str owner _this}; // client Id can be different. it returns true even when locality of an object not has changed! any ideas? sure, an "uiSleep" would be conductive, but i don't use a "waitUntil", to obtain a false statement! And why is this a problem? 1. It might not change immediately. 2. If unit is a player, it should not change at all Share this post Link to post Share on other sites
cyborg111 32 Posted May 5, 2016 Now its getting ridiculous!this spawn {(group _this) setGroupOwner 3;uisleep 0.05;waitUntil{!(local (group _this))};hint str owner _this};this WORKS!But it takes 4 seconds even when client running at the same Computer as the server? :blink: Share this post Link to post Share on other sites
cyborg111 32 Posted May 5, 2016 Why?serious?a false true is no Problem for you?I mean, the returned trues of "setgroupowner" and "setowner" are worthless! Share this post Link to post Share on other sites
klamacz 447 Posted May 5, 2016 Hi setGroupOwner tests a lot of things before changing ownership, and it can fail on any of those tests and return false. In the end it does the change, without testing if new owner is the same as old. This is designed behavior, basically returned true/false means if final state is the one you expect. If you have to know if the change of ownership was done, maybe you can use owner function before and after to determine if there was change? edit: in fact it returns false if object had the same owner 1 Share this post Link to post Share on other sites
killzone_kid 1326 Posted May 5, 2016 Why? serious? a false true is no Problem for you? I mean, the returned trues of "setgroupowner" and "setowner" are worthless! It shows if the changing of the ownership will be done. So if it returns true, it means it is doing it, so there is no false true. Share this post Link to post Share on other sites