Page MenuHomeFeedback Tracker

setOwner / setGroupOwner unable to transfer ownership to the dedicated server
Closed, ResolvedPublic

Description

Both commands work just fine when on need to transfer unit/group ownership from client to client or from server to client, however client to dedicated server doesn't work.

Details

Legacy ID
3652855144
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Dedicated Server
Steps To Reproduce

create a vehicle and a unit on the client

myvehicle = "C_Hatchback_01_F" createVehicle position player;
myunit = createGroup west createUnit [typeof player, position player, [], 0, "NONE"];
publicVariable "myvehicle";
publicvariable "myunit";

on the dedicated server execute

diag_log (myvehicle setOwner 2); .rpt false
diag_log (group myunit setGroupOwner 2);
.rpt false

Additional Information

If you are using default debug console

paste this and EXEC GLOBAL then check server .rpt

if (!isDedicated) then {

  • spawn {
		uiSleep 1;
		myvehicle = "C_Hatchback_01_F" createVehicle position player;
		myunit = createGroup west createUnit [typeof player, position player, [], 0, "NONE"];
		publicVariable "myvehicle";
		publicvariable "myunit";

};
} else {

  • spawn {
		waitUntil {!isNil {myvehicle} && !isNil {myunit}};
		diag_log [myvehicle, myvehicle setOwner 2];
		diag_log [myunit, group myunit setGroupOwner 2];
		myvehicle = nil;
		myunit = nil;

};
};

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Dedicated Server.
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Fixed.
Killzone_Kid set Legacy ID to 3652855144.May 7 2016, 8:13 PM
Killzone_Kid edited a custom field.
Iceman added a subscriber: Iceman.May 7 2016, 8:13 PM

Fixed in rev. 129204.