Page MenuHomeFeedback Tracker

playerSide not working after team switch in same session
New, NormalPublic

Description

If I spawn in a Mission as a Civilian and use this variables to change the team in the same session without being killed:

_player = player;
[player] join createGroup EAST;
selectNoPlayer;
selectPlayer _player;

playerSide = CIVILIAN
side player = EAST

It only works when the player gets killed:
playerSide = EAST
side player = EAST

Is this suppose to be like this? If not, Is there any chance that playerSide gets fixed?

Used 90% playerSide, and now have to swap over to side player.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Category
Scripting

Event Timeline

AryxRayx created this task.Apr 4 2025, 5:00 PM
Dimonua added a subscriber: Dimonua.Apr 4 2025, 6:57 PM
This comment was removed by Dimonua.
Dimonua added a comment.EditedApr 4 2025, 8:42 PM

it works - virtual slot

addMissionEventHandler ["PlayerConnected", {
	params ["_id", "_uid", "_name", "_jip", "_owner", "_idstr"];
	[_owner,_uid] spawn { 
		params ["_ow","_uid"];
		_grp = createGroup WEST;
		_ap = _grp createUnit [_type,_respos, [], 0, "NONE"];
		[_ap] joinSilent _grp;
		waituntil {!isnull _ap};
		[_ap] remoteExecCall ["selectPlayer",_ow];
	};
}];

i would like to use playerSide as client side, while in a session and not when a player is connecting.

This comment was removed by Leopard20.