Jump to content

EVENT_HIT / “Unit Hits” not triggering action in Dedicated Multiplayer Server.


Wolf4Pm

Recommended Posts

Hi everyone, 

While waiting for functional TCTS training pod in DCS, to perform Kill Removal Procedures our idea is to shoot live ordonance against each others by setting up all aircrafts in Invicible, the last thing we need is a message declaring which person has been killed.
To do that we would like to use the "Unit Hits" Trigger : -> [Once] -> [Unit Hits] -> [Message to ...]

Unfortunatly we are facing a problem with this condition (Unit Hits), it looks like there is a problem with it in a specific Dedicated multiplayer server environement.
An important thing to note is that the trigger "Unit hits" is working perfectly in any condition as soon as your a playing in SinglePlayer or in a Local Multiplayer Server. When playing on a Dedicated Multiplayer Server, that's only here where we are facing the problem bellow.

In multiplater dedicated server (not local server)
1- Player shooter   |   AI Target              "Immortal ON"    |    Trigger Condition: Unit Hits    |   Result: Text message NOT received.
2- Player shooter  |    AI Target             "Immortal OFF"   |    Trigger Condition: Unit Hits    |    Result: Text message received.
3- Player shooter  |    Player Target      "Immortal ON"    |    Trigger Condition: Unit Hits     |    Result: Text message NOT received.
4- Player shooter  |    Player Target      "Immortal OFF"   |    Trigger Condition: Unit Hits    |    Result: Text message received.
5- AI shooter         |    AI Target             "Immortal ON"    |    Trigger Condition: Unit Hits     |    Result: Text message received.
6- AI shooter         |    AI Target             "Immortal OFF"   |    Trigger Condition: Unit Hits     |    Result: Text message received.
7- AI shooter         |    Player Target      "Immortal ON"     |    Trigger Condition: Unit Hits     |   Result: Text message received.
8- AI shooter         |    Player Target      "Immortal OFF"   |    Trigger Condition: Unit Hits     |    Result: Text message received.

Conclusion : "Unit Hits" trigger is not detected and is not registered in the logs only when :
+ Mission is hosted on multiplater dedicated server.
+"Unit hits" trigger is used when a PLAYER is shooting against an immortal AI or an immortal PLAYER.

According to the values ahead, it looks like that the event "Unit hits" is not published/broadcasted in DCS code on a dedicated server when a player shoot against an immortal units (AI / Player).
Because the "Unit hits" trigger registers well in SinglePlayer or in a Local Multiplayer Server, I don't think the problem comes from the DCS code but from the Dedicated Multiplayer Server that doesn't register all data.

You will find linked to this message a test mission .miz that i have made to test every possible situation. (mission is made according to the values in the table above)

_________________________________________________________________________________________________________________________________
Bellow you will find not the problem listed above but an improvement idea to the "Unit Hits" Trigger.
Aditional Improvement Idea : 
Get the ability on the ME to get an other "Unit hits" trigger without specific number of hits on dedicated target, 
by the way, using a "Switched condition" Trigger, at each a time a unit has been hit by something we can have the trigger activated. (not only once)
-> [Switched Condition] -> [Unit Hits] -> [Message to ...]
(exemple : an information message is displayed everytime a specific immortal aircraft has been hit by something)
_________________________________________________________________________________________________________________________________

Best Regards Wolf4Pm and Gemini from the JTFF.


This message follows the three previous topics on this subject : 

Unit Hit - MP Trigger Test.miz


Edited by Wolf4Pm
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

  • Recently Browsing   0 members

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