actioneatcereal.c 390 B

1234567891011121314
  1. class ActionEatCereal: ActionEat
  2. {
  3. override void OnFinishProgressServer( ActionData action_data )
  4. {
  5. super.OnFinishProgressServer(action_data);
  6. float compassChance = 0.1;
  7. if (Math.RandomFloatInclusive(0.0, 1.0) < compassChance)
  8. {
  9. Object compass = GetGame().CreateObjectEx("OrienteeringCompass",action_data.m_Player.GetPosition(),ECE_PLACE_ON_SURFACE,RF_DEFAULT);
  10. }
  11. }
  12. };