Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Lua: Added weapon causing damage to Event_Damaged/Destroyed

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> Lua: Added weapon causing damage to Event_Damaged/Destroyed Page: [1]
Login
Message << Older Topic   Newer Topic >>
Lua: Added weapon causing damage to Event_Damaged/Destr... - 9/13/2019 1:03:13 PM   
Fer_Cabo

 

Posts: 111
Joined: 9/17/2015
Status: offline
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.
Post #: 1
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> Lua: Added weapon causing damage to Event_Damaged/Destroyed Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

2.625