$FALL_HEIGHT:300.0 GetUnitPosition(self) ->pos if(<-pos.y lte(GetTerrain(<-pos.x <-pos.z))) @deploy else SetUnitPosition(self MoveTowards(<-pos V3(<-placementPos.x 0 <-placementPos.z) <-FALL_SPEED)) endif :Once #When a unit begins operating, choose a random location on a circle to relocate the unit and remember the destination position it was originally placed at. if(GetEditMode !) GetUnitPosition(self) ->placementPos SetUnitPosition(self V3(cos(RandFloat RandInt(0 7) +) 45 * <-placementPos.x + <-FALL_HEIGHT RandInt(-15 16) + sin(RandFloat RandInt(0 7) +) 45 * <-placementPos.z +)) endif