Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actioneatcereal.c
Go to the documentation of this file.
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
Definition
actionbase.c:30
ActionEatCereal
Definition
actioneatcereal.c:2
ActionEatCereal::OnFinishProgressServer
override void OnFinishProgressServer(ActionData action_data)
Definition
actioneatcereal.c:4
ActionEat::ActionEat
void ActionEat()
Definition
actioneat.c:47
Math
Definition
enmath.c:7
Math::RandomFloatInclusive
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
Definition
enmath.c:106
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
continuous
actioneatcereal.c
Generated by
1.17.0