LUA command for conditional message (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion



Message


sarjen -> LUA command for conditional message (8/18/2020 7:33:26 PM)

I have two messages. One message should display if the player destroys a neutral. And one message should show if the OPFOR destroys a neutral. Additionaly the scenario ends instantly.

Have i to use LUA or is there a way with the event editor? I found no condition for a simple if side(NATO) destroys ship A then its message A, if side(OPFOR) destroys ship A then its message B.

Is there an easy way to do that? Thanks in advance.




KnightHawk75 -> RE: LUA command for conditional message (8/18/2020 9:38:24 PM)

Have you tried multiple actions (message and 2nd one end scenario) assigned to the opfor related trigger?

As for LUA...
Trigger (nato related) with lua script action:
ScenEdit_SpecialMessage("theSideName","YourMessageTextherePlainOrInHTML")

Trigger (opfor related) with lua script action:
ScenEdit_SpecialMessage("theSideName","YourOtherMessageTextherePlainOrInHTML");
ScenEdit_EndScenario();





sarjen -> RE: LUA command for conditional message (8/20/2020 11:08:32 AM)

Thanks for the input KnightHawk75. I will do some meddling with LUA.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.65625