# Set Unit Seed

Grammar — Set unit seed to seed
FlagsNative | Action

Sets a unit’s state.

# Arguments

  • unit — Unit
  • int — Seed

Returns — void

native void UnitSetSeed(unit inUnit, int seed);

Category: Unit / Properties

# Examples

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:509


    }
    UnitSetSeed(lv_target, UnitGetSeed(lv_caster));
    Wait(0.125, c_timeGame);
    UnitSetPropertyFixed(lv_target, c_unitPropLifeMax, UnitGetPropertyFixed(lv_caster, c_unitPropLifeMax, c_unitPropCurrent));