Lua: Added weapon causing damage to Event_Damaged/Destroyed (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support



Message


Fer_Cabo -> Lua: Added weapon causing damage to Event_Damaged/Destroyed (9/13/2019 1:03:13 PM)

Hi folks,

No way i can figure out what's the way i can use this in a Lua script. It's not part of UnitX() - which is the damaged/destroyed unit triggering the event, nor is it related to UnitY() or UnitC()- which are both fields related to other kind of trigger ("Unit Detected" actually).

Specifically, what i'd want is to Lua-code an Action changing the posture of the damaged/destroyed unit's Side towards the Weapon-Causing-the-Damage/Destruction's Side.

i.e. If one land unit from the side "DPRK" is damaged or destroyed by a weapon from the side "US" (with the US side conducting a first / preemptive strike), so the posture of the "DPRK" side should then change to "H" (Hostile") vs. the side "US".

Thanks a lot in advance.

Best regards!!

Fernando.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
2.953125