Is it possible to implement a Paradrop unit action using Lua?

Deliverator

Graphical Hackificator
Joined
Feb 12, 2008
Messages
4,813
Location
London, UK
Is it possible to implement a Paradrop unit action using Lua? People have fed back that they miss the Paratrooper in Civ 6 so I was wondering whether it is possible to implement Paradrop with the current state of Civ 6 modding.
 
I've been thinking about this since you posted. It's probably possible but I am guessing might be a bit PITA to create the needed UI and gameplay scripts to get it to work.

You'd have to tie into the unit-panel in one way or another and perhaps also create a new unit command and perhaps unit-operation. Then within Unit-panel's lua code there would need to be some way to send the output to the rest of the game engine for implementing the unit-move. There does appear to be a UnitManager.MoveUnit method but you'd have to figure out what arguments it wants, whether it wants the unit object or the unit ID, etc., and figure a way for a gameplay script that is implementing the move to "get" the info sent to the game engine by the Unit Panel code.
 
You might be able to find some way to parlay the exiting Airlift ability into this. Here it is in the database in the UnitCommands table.

Another option might be to just give the unit a lot of movepoints and the ability to disregard zone of control, obstacles, etc. Then create a walk animation that is basically a teleport.

upload_2017-6-4_15-54-45.png
 
Back
Top Bottom