Skip to content

Setting MoveSpeed after SummonMonster does not affect the monster's movement speed #20

Description

@neutonm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions