Пример #1
0
 public void StartUse(Entity user)
 {
     if (!Removed)
     {
         int    itemMusicType   = Original.GetAttributeI("music_type", 0);
         double itemMusicVolume = Original.GetAttributeF("music_volume", 0.5f);
         double itemMusicPitch  = Original.GetAttributeF("music_pitch", 1f);
         TheRegion.PlaySound("sfx/musicnotes/" + itemMusicType, GetPosition(), itemMusicVolume, itemMusicPitch);
     }
 }