Problem
Game: Might & Magic 7
After creating a monster with SummonMonster, changing its MoveSpeed value does not appear to affect its actual movement speed.
It is unclear whether this is a bug or whether the variable name is misleading. Setting Velocity changes the monster's speed as expected, while setting MoveSpeed has no visible effect.
Perhaps assigning a new value to MoveSpeed should also update Velocity, for example:
monster.Velocity = monster.MoveSpeed
Test code
Setting MoveSpeed does not work:
local monster = SummonMonster(22)
monster.MoveSpeed = 600
Setting Velocity works:
local monster = SummonMonster(22)
monster.Velocity = 600
Expected behavior
Changing monster.MoveSpeed should affect the summoned monster's movement speed.
Problem
Game: Might & Magic 7
After creating a monster with
SummonMonster, changing itsMoveSpeedvalue does not appear to affect its actual movement speed.It is unclear whether this is a bug or whether the variable name is misleading. Setting
Velocitychanges the monster's speed as expected, while settingMoveSpeedhas no visible effect.Perhaps assigning a new value to
MoveSpeedshould also updateVelocity, for example:Test code
Setting
MoveSpeeddoes not work:Setting
Velocityworks:Expected behavior
Changing
monster.MoveSpeedshould affect the summoned monster's movement speed.