I've added the ".editdefs" command to allow editing unit definitions and
weapon definitions in-game (the commands have to be proxied through
one of the lua interfaces, very easy to do).
This mode is intended to help mod creators tweak their units. I'm not
going to guarantee that it won't crash your game. It's very likely that
it will. The other oddity is that it requires you to create a new unit for
certain parameters to take effect.
Example:
Code: Select all
.editdefs 1
/luaui setudef armcom radarRange 400
.cheat 1
.give armcom
There are some improvements that could be made (like copying changes
to existing units, and providing access to more complex types like table),
but that'll have to wait for a little while.