DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
ActionEatCereal.c
См. документацию.
1
class
ActionEatCereal
:
ActionEat
2
{
3
4
override
void
OnFinishProgressServer
(
ActionData
action_data )
5
{
6
super.OnFinishProgressServer(action_data);
7
8
float
compassChance = 0.1;
9
if
(
Math
.
RandomFloatInclusive
(0.0, 1.0) < compassChance)
10
{
11
action_data.m_Player.SpawnEntityOnGroundRaycastDispersed(
"OrienteeringCompass"
);
12
}
13
}
14
};
ActionData
ActionBase ActionData
Определения
ActionBase.c:30
ActionEat::ActionEat
void ActionEat()
Определения
ActionEat.c:47
ActionEatCereal::OnFinishProgressServer
override void OnFinishProgressServer(ActionData action_data)
Определения
ActionEatCereal.c:4
ActionEatCereal
Определения
ActionEatCereal.c:2
Math
Определения
EnMath.c:7
Math::RandomFloatInclusive
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
Определения
EnMath.c:106
Ishodniki
scripts
4_World
Classes
UserActionsComponent
Actions
Continuous
ActionEatCereal.c
Создано системой
1.13.2