Lua Script help to simulate retreating planes/ ships (Full Version)

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



Message


TYHo -> Lua Script help to simulate retreating planes/ ships (8/28/2017 1:38:02 PM)

Hi guys,

Need help to simulate retreating planes/ ships using Lua... The trigger is the computer oppoinent plane/ ship is 50% damage, but how do I make the plane/ ship disengage and retreat? Thanks!




Rory Noonan -> RE: Lua Script help to simulate retreating planes/ ships (8/28/2017 8:36:30 PM)

With aircraft damage on, an aircraft will automatically disengage and head home if it suffers significant damage. It looks like the threshold is ~25%

With ships all you need to do is a set a port as a home base for the ship, then change the doctrine 'withdraw' settings to whatever threshold you want.

Lua isn't necessary for this behaviour [:)]




DrYorgashReeksPhD -> RE: Lua Script help to simulate retreating planes/ ships (8/28/2017 9:27:44 PM)

Why is it that the developers of this game (Mike especially) seem to think the majority of its players are computer programmers or have a big interest in that? Speaking for myself, I did not purchase this game to learn LUA in order to create scenarios. Streamline the process somehow for those of us who want to utilize the military and geopolitical features of the game and not learn LUA and code in the process.




Rory Noonan -> RE: Lua Script help to simulate retreating planes/ ships (8/28/2017 11:54:11 PM)

Er... What part of 'Lua isn't necessary for this behaviour' feeds into that argument?

You don't need Lua to make scenarios. You can make very complex and entertaining scenarios without any Lua whatsoever. See the 'Standalone Scenarios' and Gunner98's early Northern Fury series for some excellent examples.




TYHo -> RE: Lua Script help to simulate retreating planes/ ships (8/29/2017 2:25:49 PM)

quote:

set a port as a home base for the ship


Thanks! This is what I need...




thewood1 -> RE: Lua Script help to simulate retreating planes/ ships (8/29/2017 8:33:13 PM)


quote:

ORIGINAL: DrYorgashReeksPhD

Why is it that the developers of this game (Mike especially) seem to think the majority of its players are computer programmers or have a big interest in that? Speaking for myself, I did not purchase this game to learn LUA in order to create scenarios. Streamline the process somehow for those of us who want to utilize the military and geopolitical features of the game and not learn LUA and code in the process.


Unfortunately enough people don't read all the documentation and practice using the features to know a lot can be done without Lua.

You can play this game fine without lua. The game went for a couple years without it. I am sure the devs would be more than happy to remove lua access if you can get enough of your fellow games to vote on removing lua as a feature. Because, you know, the devs forcing you to use it really is against all that is good and holy.

btw, good first post to introduce yourself and build relationships.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.7659912