Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
craterellusmushroom.c
Go to the documentation of this file.
2{
3 override void SetActions()
4 {
5 super.SetActions();
6
9 }
10
11 override void EEOnCECreate()
12 {
13 int rand = Math.RandomInt(0,10);
14 float baseTemp = GetGame().GetMission().GetWorldData().GetBaseEnvTemperature();
15
16 if ( baseTemp <= GameConstants.COLD_AREA_TEMPERATURE_THRESHOLD )
17 {
19 SetHealth( "", "", GetMaxHealth()*1.0 );
20 }
21 }
22}
void AddAction(typename actionName)
void ChangeFoodStage(FoodStageType new_food_stage_type)
Definition enmath.c:7
float GetBaseEnvTemperature()
Definition worlddata.c:206
FoodStageType
Definition foodstage.c:2
proto native CGame GetGame()