Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
actioneatcereal.c
Go to the documentation of this file.
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};
ActionBase ActionData
Definition actionbase.c:30
override void OnFinishProgressServer(ActionData action_data)
void ActionEat()
Definition actioneat.c:47
Definition enmath.c:7
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
Definition enmath.c:106