Jump to content

Recommended Posts

Posted

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.

  • 4 years later...
Posted

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.

---

Posted

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").

---

  • Recently Browsing   0 members

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