DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GiveWormsToPlayer()

bool PluginBase::GiveWormsToPlayer ( PlayerBase player,
float chance )
inlineprivate

См. определение в файле PluginHorticulture.c строка 95

96 {
97 if ( Math.RandomFloat01() <= chance )
98 {
99 ItemBase item = ItemBase.Cast( player.GetHumanInventory().CreateInInventory("Food_Worm") );
100 item.SetQuantity( 1 );
101 return true;
102 }
103
104 return false;
105 }
class GP5GasMask extends MaskBase ItemBase
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
Определения PileOfWoodenPlanks.c:88

Перекрестные ссылки Math::RandomFloat01() и ItemBase::SetQuantity().