Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
actioneatcereal.c
Go to the documentation of this file.
1class 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};
ActionBase ActionData
Definition actionbase.c:30
Definition enmath.c:7