2025-08-08 15:13 CEST

spring: develop 174f0980 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
Marek Baczynski Marek Baczynski develop 2009-12-20 23:06:58 develop ce49200e
Changeset lua: add Spring.MoveCtrl.SetAirMoveTypeData - a callin that can change AirMoveType values

example usage to change a unit's cruise height:

  Spring.MoveCtrl.SetAirMoveTypeData(unitID, "wantedHeight", 150)

or equivalent

  Spring.MoveCtrl.SetAirMoveTypeData(unitID, {wantedHeight=150})

other MoveType lua controls will follow.
mod - rts/Lua/LuaSyncedMoveCtrl.cpp Diff ] File ]
mod - rts/Lua/LuaSyncedMoveCtrl.h Diff ] File ]
mod - rts/Lua/LuaSyncedRead.cpp Diff ] File ]