Page MenuHomeFeedback Tracker

roleDescription command is broken in MP lobby with AI
Closed, ResolvedPublic

Description

roleDescription shows wrong or invalid roles if used on AIs.

I tested with players instead, it works fine.

script output:

In this output I am the player (sql aka "ASL - Squad Leader2")

14:55:03 sql
14:55:03 "the ai: sql, the role description: ASL - Squad Leader2, the group: B Alpha 1-1"
14:55:03 mohawk
14:55:03 "the ai: mohawk, the role description: Mohawk 1 - Pilot, the group: B Alpha 1-2"
14:55:03 mmgguy
14:55:03 "the ai: mmgguy, the role description: ASL - Squad Leader2, the group: B Alpha 1-3"
14:55:03 marksman
14:55:03 "the ai: marksman, the role description: , the group: B Alpha 2-1"

script input:
sleep 5;

if(isServer) then
{
{

		diag_log _x;
		diag_log format ["the ai: %1, the role description: %2, the group: %3",_x, roleDescription _x, group _x];

} foreach (playableunits+switchableunits);
};
{F26770}

Details

Legacy ID
1740094694
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Use the mission provided. Play alone in MP LAN lobby...(not sure if it happens on editor)

Additional Information

Nope

Event Timeline

PhonicGames edited Additional Information. (Show Details)
PhonicGames set Category to Scripting.
PhonicGames set Reproducibility to Always.
PhonicGames set Severity to None.
PhonicGames set Resolution to Fixed.
PhonicGames set Legacy ID to 1740094694.May 8 2016, 12:29 PM
Bohemia added a subscriber: Dwarden.Aug 5 2015, 3:06 PM

Should be fixed in Monday's dev