0xDEADBEEF Posted April 2, 2020 Posted April 2, 2020 Hello! As per the documentation on hoggit the S_EVENT_MARK_ADDED event is supposed to contain an initator parameter. This would also be absolutely expected, as you would not be able to tell who placed the mark otherwise. It appears on my test-rig that with the current OB Version the initiator parameter is not passed along the mission (or is passed as nil, which is the same). This is the table I receive with the event: event = { ['coalition'] = 2, ['idx'] = 251658242, ['time'] = 28930, ['id'] = 25, ['text'] = '', ['groupID'] = -1, ['pos'] = { ['y'] = 522.64993671191, ['x'] = -239932.57126467, ['z'] = 734296.67458392, }, } Setup to reproduce: simple mission, add a script handler. Run in dedicated server on local machine in separate work directory. Connect as a client with standard dcs installation. Place mark. No initiator provided.
Flappie Posted February 25 Posted February 25 It seems to work just fine when the initiator is a pilot. But it does not work when the initiator is using a special slot such as Game Master. I'll report this issue. Thanks for bumping this thread. It does not work from the Mission Editor either, but that sounds normal. ---
Flappie Posted February 26 Posted February 26 Devs answered: the initiator is linked to a vehicle. When in a Combined Arms slot and not in control of any vehicle, there is no initiator because there is no vehicle. But since the goal here is apparently to find "who?" rather than "which vehicle?", I'll ask them if it is possible to add a new field (something like "player_name"). ---
Recommended Posts