func Construction() { // general stuff StartGrowth(15); current_angle = Random(360); current_speed = RandomX(SwimMaxSpeed/5, SwimMaxSpeed); var len = GetAnimationLength("Swim"); swim_animation = PlayAnimation("Swim", 5, Anim_Linear(0, 0, len, 100, ANIM_Loop), Anim_Const(500)); UpdateSwim(); SetAction("Swim"); SetComDir(COMD_None); ScheduleCall(this, this.InitActivity, 1 + Random(10), 0); AddTimer(this.UpdateSwim, 2); InitFuzzyRules(); return _inherited(...); }
func Construction() { StartGrowth(15); }