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.
Description
Description
Details
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;
};
};