Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
cacontinuousminerock.c
Go to the documentation of this file.
2{
3 void CAContinuousMineRock(float time_between_drops)
4 {
5 m_TimeBetweenMaterialDrops = time_between_drops;
6 }
7
8 override bool GetMiningData(ActionData action_data )
9 {
10 RockBase ntarget;
11 if ( Class.CastTo(ntarget, action_data.m_Target.GetObject()) )
12 {
13 m_AmountOfDrops = ntarget.GetAmountOfDrops(action_data.m_MainItem);
14 ntarget.GetMaterialAndQuantityMap(action_data.m_MainItem,m_MaterialAndQuantityMap);
15 m_DamageToMiningItemEachDrop = ntarget.GetDamageToMiningItemEachDrop(action_data.m_MainItem);
17 return true;
18 }
19 return false;
20 }
21};
ref map< string, int > m_MaterialAndQuantityMap
Super root of all classes in Enforce script.
Definition enscript.c:11