Jump to content

playername does not exist when we are in gamemaster/Tactical com/Observer


Kappa-131st

Recommended Posts

When we are in : 

 - Spectator mode
 - advanced observer
 - observer
 - Tactical commander
 - Gamemaster

=> You have no player name or id !!!!
When you create a marker, you have no display player name on the marker

bug1.jpg

 

When you use the following functions (for my test, I am alone in the server, in gamemaster "blue") : 

trigger.action.outText(dump(coalition.getPlayers(0)), 120)  --players list for neutral coalition
trigger.action.outText(dump(coalition.getPlayers(1)), 120)   --players list for red coalition
trigger.action.outText(dump(coalition.getPlayers(2)), 120)  --players list for blue coalition

bug2.jpg

The gamemaster player does not appear on blue, red or neutral coalition.

The 4th line is a tentative to display the author (player name) of the markers with world.getMarkPanels(marker_ids) : "Author "..marker["author"].
It is empty too...
How can I get the player name of a gamemaster ?
I think it is a bug.

Another thing : On the event : 

S_EVENT_MARK_CHANGE

https://wiki.hoggitworld.com/view/DCS_event_mark_change

the documentation indicate there is a initiator

Event = {
 id = 26,
 idx = number markId,
 time = Abs time,
 initiator = Unit,
 coalition = number coalitionId,
 groupID = number groupId,
 text = string markText,
 pos = vec3
}


But when I try to dump the event, there is no "initiator", even If the "initiator" is an active player in an aircraft.
On thoses conditions, the only way to have the initiator of a marker is to use world.getMarkPanels() and find the marker to have initiator.

(I have made no test for the other event, but I think the initiator is also missing in the event "event_mark_added' and "event_mark_remove)
Can we fix it?


Edited by Kappa-131st
Link to comment
Share on other sites

  • 3 months later...
  • 2 weeks later...
  • 3 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...