Get value as int from the given script id.
Используется в Weapon::LiftWeaponCheck() и MissionBase::ShowHairDebugValues().