Lua to alter a mount's capacity?

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
Redeye43
Posts: 63
Joined: Wed Jan 05, 2022 7:37 pm

Lua to alter a mount's capacity?

Post by Redeye43 »

I've been playing around with Lua a lot more lately and I've come upon something I seemingly can't do. Since the Mount wrapper is read only, it's impossible to alter the capacity of a mount through Lua. I'd like to be able to do this to simulate having a portion of the ready launchers on a mount destroyed, or having a custom mount of some form with MORE launchers than the original. Is there any way this can be done? The setter just outright doesn't exist for mounts.
User avatar
blu3s
Posts: 1122
Joined: Fri Jul 08, 2022 9:45 am

Re: Lua to alter a mount's capacity?

Post by blu3s »

That's not possible, you can only use the weapon records that are in the DB to add more weapons to an existing mount, or add new mounts to an unit
Post Reply

Return to “Lua Legion”