# Dialog Item Set Animation Speed

Grammar — Set the speed speed of animation animationName on dialog item dialogItem for players
FlagsNative | Action | Restricted

Sets the speed of an animation on a dialog item. Animations are defined in the layout of a dialog item.

# Arguments

  • int<control> — Dialog Item
  • playergroup — Players
  • string — Animation
  • fixed — Speed

Returns — void

native void DialogControlSetAnimationSpeed(
	int control,
	playergroup players,
	string animationName,
	fixed speed,
);

Category: Dialog / Dialog Item Tools

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:2330

        if ((lv_respawnTimer > 0.0)) {
            lv_animationSpeed = (100/lv_respawnTimer);
            DialogControlSetAnimationSpeed(lv_dialogItem, libCore_gv_playerGroupFromPlayer[lp_player], "ShrinkOverlay", lv_animationSpeed);
        }